diff --git a/ChangeLog b/ChangeLog index 0de1970..d90fa3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-12-15 Dmitry V. Kustov + + * src/base/random/cl_random_from.cc: Add support for OpenBSD. + 2005-11-23 Richard B. Kreckel * Version 1.1.11 released. diff --git a/src/base/random/cl_random_from.cc b/src/base/random/cl_random_from.cc index 1b2ad60..3e10b12 100644 --- a/src/base/random/cl_random_from.cc +++ b/src/base/random/cl_random_from.cc @@ -68,6 +68,9 @@ random_state::random_state () seed_lo = ::get_seed(); seed_hi = (rand() // zufällige 31 Bit (bei UNIX_BSD) bzw. 16 Bit (bei UNIX_SYSV) << 8) ^ (uintL)(getpid()); // ca. 8 Bit von der Process ID +#elif defined(__OpenBSD__) + seed_lo = arc4random(); + seed_hi = arc4random(); #elif defined(__atarist) seed_lo = highlow32(GEMDOS_GetDate(),GEMDOS_GetTime()); // 16+16 zufällige Bits seed_hi = XBIOS_Random(); // 24 Bit zufällig vom XBIOS, vorne 8 Nullbits