[krbdev.mit.edu #2755] CVS Commit

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Fri Oct 29 20:56:36 EDT 2004


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 


More information about the krb5-bugs mailing list