summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/random.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-081-2/+1
|
* Initialize ci_randseed better using arc4random() + a trick. Remove thederaadt2014-01-191-15/+3
| | | | | libkern srandom() API since it is not suitable for this use. ok kettenis miod
* make random(9) return per-cpu values (by saving the seed in the cpuinfo),deraadt2008-10-151-6/+18
| | | | | | | 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
* ansi and some missing protosderaadt2004-08-071-3/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* $OpenBSD$niklas1997-11-071-0/+1
|
* Remove extra underscore from _randseedniklas1996-08-141-3/+3
|
* make -Wstrict-prototypes happyniklas1996-08-111-0/+2
|
* srandom() seeds random() at boottimederaadt1996-08-101-3/+4
|
* initial import of NetBSD treederaadt1995-10-181-0/+65