Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) From: raeburn@mit.edu Subject: CVS Commit X-RT-Original-Encoding: iso-8859-1 Content-Length: 774 This seems to speed up creating a krb5_context a little bit, when it happens a lot in multiple threads. * prng.c (yarrow_lock): Rename to krb5int_yarrow_lock via macro, and change to be non-static. (krb5int_prng_init): Call do_yarrow_init here. (krb5_c_random_add_entropy): Don't call it here. Don't lock the mutex, either. (krb5_c_random_make_octets): Don't lock the mutex. * yarrow/ylock.h: Include k5-thread.h. (krb5int_yarrow_lock): Declare. (LOCK, UNLOCK): Define as macros using the k5_mutex_ macros. To generate a diff of this commit: cvs diff -r5.168 -r5.169 krb5/src/lib/crypto/ChangeLog cvs diff -r5.20 -r5.21 krb5/src/lib/crypto/prng.c cvs diff -r1.17 -r1.18 krb5/src/lib/crypto/yarrow/ChangeLog cvs diff -r1.3 -r1.4 krb5/src/lib/crypto/yarrow/ylock.h