summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/random.c
AgeCommit message (Expand)Author
2015-01-16Move to the <limits.h> universe.Theo de Raadt
2014-12-16typo; ok deraadtStuart Henderson
2014-12-16warn for correct symbolTheo de Raadt
2014-12-09improve warnings from rand_r(), rand(), and random()Theo de Raadt
2014-12-08Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()Theo de Raadt
2014-10-13remove unused variableCharles Longeau
2014-07-13once srandomdev() is called, switch to using arc4random() but mask off theTed Unangst
2014-06-15oops, typo. James Hartley is fast at trying -currentTheo de Raadt
2014-06-15In srandomdev(), use arc4random_buf() instead of from the kernel.Theo de Raadt
2014-06-13use getentropy; from matthewTheo de Raadt
2013-08-01Add linker warnings for rand() and random() and various related functions.Mark Kettenis
2013-03-15threadsafe random().Ted Unangst
2012-06-01Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),Philip Guenthe
2012-03-21Fix a bug where random() always returns 0 when srandom() is seededTodd C. Miller
2005-11-30Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a timeOtto Moerbeek
2005-08-08zap remaining rcsid.Marc Espie
2005-03-30ansi + de-registerPatrick Latifi
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-02-28Use int32_t, not long since this deals with 32bit quantities.Todd C. Miller
2002-12-06In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead.Todd C. Miller
2000-04-04Fix the leak for real (that's what I get for hacking when i can't sleep).Todd C. Miller
2000-04-04Fix an fd leak if the read from /dev/arandom fails. Pointed out byTodd C. Miller
2000-04-03Add srandomdev() from FreeBSD for use by sendmail and others.Todd C. Miller
1998-02-07More XPG4.2 --Todd C. Miller
1998-02-06size_t n in initstate(); XPGTheo de Raadt
1996-09-15Remove dead codeThorsten Lockert
1996-08-19Fix RCS idsThorsten Lockert
1996-03-30Substantially improve random number generation by using the largest primeThorsten Lockert
1995-10-18initial import of NetBSD treeTheo de Raadt