summaryrefslogtreecommitdiff
path: root/lib/libc/crypt/arc4random.c
AgeCommit message (Expand)Author
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