summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/random.c
AgeCommit message (Collapse)Author
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2014-01-19Initialize ci_randseed better using arc4random() + a trick. Remove theTheo de Raadt
libkern srandom() API since it is not suitable for this use. ok kettenis miod
2008-10-15make random(9) return per-cpu values (by saving the seed in the cpuinfo),Theo de Raadt
which are uniform for the profclock on each cpu in a SMP system (but using a different seed for each cpu). on all cpus, avoid seeding with a value out of the [0, 2^31-1] range (since that is not stable) ok kettenis drahn
2004-08-07ansi and some missing protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
1997-11-07$OpenBSD$Niklas Hallqvist
1996-08-14Remove extra underscore from _randseedNiklas Hallqvist
1996-08-11make -Wstrict-prototypes happyNiklas Hallqvist
1996-08-10srandom() seeds random() at boottimeTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt