summaryrefslogtreecommitdiffstats
path: root/sys/libkern/random.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r311989 (cem):delphij2017-05-311-1/+1
| | | | libkern: Remove obsolete 'register' keyword
* Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Lower initial drop value to 50, it is enough to hide linearityache2003-08-101-2/+2
|
* Use __FBSDID().obrien2003-06-111-1/+3
|
* Since we drop NSHUFF values now, set default seed to what it becomesache2003-02-051-1/+1
| | | | after srandom(1)
* Drop NSHUFF values right after srandom() to remove part of seed -> 1stache2003-02-041-0/+6
| | | | value correlation. Correlation still remains because of algorithm limits.
* Park & Miller PRNG can be safely initialized with any value but 0 and stuckache2003-02-031-2/+4
| | | | | | | at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to 2147483647 after calculation, but this method not works since 2147483647 seed returns to 0 again on the next interation. Instead of after calculation mapping, map 0 to another value _before_ calculation, so it never stucks.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* add simple srandom() and prototypepeter1996-09-231-2/+10
|
* <libkern/libkern.h> has moved to <sys/libkern.h> (repository copy).phk1995-03-171-2/+2
| | | | | Since /usr/include/libkern doesn't and shouldn't exist, this is the least evil way to handle this.
* Added $Id$dg1994-08-021-0/+1
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+63
OpenPOWER on IntegriCloud