summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/rand.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+2
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Add a long-overdue nail to the deprecated /dev/urandom interfaceMark Murray2001-10-301-1/+1
| | | | | | | | by asking some things that need unpredictable numbers to read /dev/random instead. Notes: svn path=/head/; revision=85752
* urandom(4) -> random(4) in comments.Dima Dorfman2001-06-071-1/+1
| | | | | | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Reviewed by: md5(1) Approved by: markm Notes: svn path=/head/; revision=77851
* Add #include "un-namespace.h"Andrey A. Chernov2001-04-231-0/+1
| | | | Notes: svn path=/head/; revision=75863
* srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allowAndrey A. Chernov2001-04-231-1/+1
| | | | | | | change of high word part too to produce more interesting seed distribution. Notes: svn path=/head/; revision=75862
* Add sranddev() since srand() is not vary much with seed, typical timeAndrey A. Chernov2001-04-231-0/+34
| | | | Notes: svn path=/head/; revision=75845
* Use formula with better random distribution for rand()Andrey A. Chernov2001-02-271-0/+26
| | | | | | | | | Even better formula from random() could not be intetgrated because rand_r() supposed to store its state in the single variable (but table needed for random() algorithm integration). Notes: svn path=/head/; revision=73156
* Added Posix rand_r function.Wes Peters1999-05-241-1/+52
| | | | Notes: svn path=/head/; revision=47474
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+54
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573