kc3-lang/libevent/evutil_rand.c

Branch :


Log

Author Commit Date CI Message
3c824bd3 2011-10-24 13:18:09 Update copyright dates to 2011.
b4423029 2011-08-08 17:06:46 Allow OS-neutral builds for platforms where some versions have arc4random_buf
00a7a0e4 2011-07-17 21:48:38 Fix a warning in evutil_rand when building with threads disabled
b683cae3 2011-04-22 12:01:25 Avoid race-condition when initializing global locks Previously, we did stuff like if (!lock) EVTHREAD_ALLOC_LOCK(lock,0); for the evsig base global lock, the arc4random lock, and the debug_map lock. But that's potentially racy! Instead, we move the responisiblity for global lock initialization to the functions where we set up the lock callbacks. (Rationale: We already require that you set up the locking callbacks before you create any event_base, and that you do so exatly once.)
7484df61 2010-11-01 13:43:43 Fix even more win64 warnings
598d1336 2010-10-27 22:57:53 Try to clear up more size_t vs int/long issues.
ec347b92 2010-07-07 16:45:03 Move event-config.h to include/event2 This change means that all required include files are in event2, and all files not in event2/* are optional.
f9807167 2010-04-23 15:17:10 Make evutil_secure_rng_init() work even with builtin arc4random
4ec8fea6 2010-02-13 00:11:44 Make RNG work when we have arc4random() but not arc4random_buf()
d4de062e 2010-02-10 17:19:18 Add an arc4random implementation for use by evdns Previously, evdns was at the mercy of the user for providing a good entropy source; without one, it would be vulnerable to various active attacks. This patch adds a port of OpenBSD's arc4random() calls to Libevent [port by Chris Davis], and wraps it up a little bit so we can use it more safely.