From: Alexandra Ellwood Date: Thu, 6 Mar 2003 20:08:24 +0000 (+0000) Subject: * prng.c: use Unix randomness sources on Mac OS X X-Git-Tag: krb5-1.3-alpha1~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6771f9fe404c0ed3745ffbec2ec933cc46a30c2;p=krb5.git * prng.c: use Unix randomness sources on Mac OS X git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15249 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index ff1a2b511..6f73ddf62 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,7 @@ +2003-03-06 Alexandra Ellwood + + * prng.c: use Unix randomness sources on Mac OS X. + 2003-03-05 Ken Raeburn * Makefile.in (OBJFILELIST, OBJFILEDEP) [##DOS]: Add aes.lst. diff --git a/src/lib/crypto/prng.c b/src/lib/crypto/prng.c index 0f45e6b51..881eebd34 100644 --- a/src/lib/crypto/prng.c +++ b/src/lib/crypto/prng.c @@ -118,10 +118,9 @@ void prng_cleanup (void) /* * Routines to get entropy from the OS. For UNIX we try /dev/urandom - * and /dev/random. Currently we don't do anything for pre-OSX Mac and - * Windows. + * and /dev/random. Currently we don't do anything for Windows. */ -#if defined(_WIN32) || (defined(TARGET_OS_MAC) && !defined(TARGET_API_MAC_OSX)) +#if defined(_WIN32) krb5_error_code KRB5_CALLCONV krb5_c_random_os_entropy ( @@ -132,7 +131,7 @@ krb5_c_random_os_entropy ( return 0; } -#else /*Windows and non-OSX Mac*/ +#else /*Windows*/ #ifdef HAVE_UNISTD_H #include #endif