evutil_rand.c


Log

Author Commit Date CI Message
Nick Mathewson 0cb70e33 2011-10-26T10:17:21 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 3c824bd3 2011-10-24T13:18:09 Update copyright dates to 2011.
Nick Mathewson 5419803d 2011-08-08T22:04:46 Merge remote-tracking branch 'origin/patches-2.0'
Mitchell Livingston b4423029 2011-08-08T17:06:46 Allow OS-neutral builds for platforms where some versions have arc4random_buf
Nick Mathewson 18667d3c 2011-07-18T18:07:48 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 00a7a0e4 2011-07-17T21:48:38 Fix a warning in evutil_rand when building with threads disabled
Nick Mathewson 78fb99ce 2011-07-04T12:22:54 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson b683cae3 2011-04-22T12: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.)
Kevin Bowling 0915ca0a 2011-01-02T08:43:45 Include evconfig-private.h in internal files for great good.
Nick Mathewson 7484df61 2010-11-01T13:43:43 Fix even more win64 warnings
Nick Mathewson 598d1336 2010-10-27T22:57:53 Try to clear up more size_t vs int/long issues.
Nick Mathewson ec347b92 2010-07-07T16: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.
Nick Mathewson f9807167 2010-04-23T15:17:10 Make evutil_secure_rng_init() work even with builtin arc4random
Nick Mathewson 4ec8fea6 2010-02-13T00:11:44 Make RNG work when we have arc4random() but not arc4random_buf()
Nick Mathewson d4de062e 2010-02-10T17: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.