summaryrefslogtreecommitdiff
path: root/lib/libc/crypt/arc4random.c
AgeCommit message (Expand)Author
2014-05-06missing NULL checks to see if init is needed. found hard way by deraadt.Ted Unangst
2014-05-06clear a stack buffer with explicit_bzeroTed Unangst
2014-05-06move chacha context and buffer out of bss and allow mmap to place themTed Unangst
2014-05-04delete useless test codeTheo de Raadt
2013-10-21Remove arc4random_stir() and arc4random_addrandom(), which none shouldTheo de Raadt
2013-10-01replace rc4 with ChaCha20; inspired by Nick Mathewson's work on libottery;Markus Friedl
2013-06-11spacingTheo de Raadt
2012-06-24Change arc4random_uniform() to calculate ``2**32 % upper_bound'' asMatthew Dempsky
2010-12-22remove comment that hasn't been true for quite a while now;Otto Moerbeek
2009-12-15No point in refreshing the pid from inside arc4_stir() when thatPhilip Guenthe
2008-10-03zap __arc4_getbyte(), it was only used by the old malloc; ok millert@Otto Moerbeek
2008-06-04fix math screwup that reintroduced a bias for upper_bounds in rangeDamien Miller
2008-03-16diff from djm@ committed at his request:Otto Moerbeek
2008-01-01- make arc4random*() functions thread safe. Use a custom spinlock functionKurt Miller
2007-02-12provide an libc internal interface to get random bytes, to be used by mallocOtto Moerbeek
2005-11-30Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a timeOtto Moerbeek
2005-06-06Change email address for author, at his request.Kjell Wooding
2005-06-06Change license to standard OpenBSD boilerplate, with permissionKjell Wooding
2005-06-04use the new fat random sysctl to get initial state. (fallback to looping).Ted Unangst
2004-11-02kill spacesHans-Joerg Hoexer
2003-11-26Discard first 256 bytes of keystream, as per recommendation inDamien Miller
2003-08-16just use sysctl for stirring. thread safe and can't fail.Ted Unangst
2003-06-11ansification; checked by pvalTheo de Raadt
2003-02-14re-stir if pid changes; markus & meTheo de Raadt
2001-06-05License clarification from David Mazieres, ok deraadt@Peter Valchev
1999-09-28Set j = i after arc4random key schedule to be more like arc4 stream cipher;Theo de Raadt
1999-06-29if /dev/arandom is not available for seeding, use data from sysctlNiels Provos
1998-03-22$OpenBSD$Niklas Hallqvist
1997-07-09Clean up some -Wall flowers.Todd C. Miller
1996-12-28arc4random() number generator, for use with things like RPC xid's.dm