* prng.c: use Unix randomness sources on Mac OS X
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 6 Mar 2003 20:08:24 +0000 (20:08 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 6 Mar 2003 20:08:24 +0000 (20:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15249 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/ChangeLog
src/lib/crypto/prng.c

index ff1a2b51105ec32ac41e4b4f3586b41563ca2a66..6f73ddf62710f7d767f926ac0d19335a1a0b224e 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-06  Alexandra Ellwood  <lxs@mit.edu>
+
+    * prng.c: use Unix randomness sources on Mac OS X.
+
 2003-03-05  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (OBJFILELIST, OBJFILEDEP) [##DOS]: Add aes.lst.
index 0f45e6b51f99b8400156cf292405fdddf72e3ae2..881eebd340227363ec2699315e44089883d9e34e 100644 (file)
@@ -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 <unistd.h>
 #endif