summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/rand.c
AgeCommit message (Expand)Author
2023-11-26lib: Remove ancient SCCS tags.Warner Losh
2023-11-01libc: Purge unneeded cdefs.hWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2021-07-21Fix race between first rand(3) calls with _once().Alexander Motin
2021-07-21Revert "Fix race between first rand(3) calls."Alexander Motin
2021-07-20Fix race between first rand(3) calls.Alexander Motin
2020-02-01rand(3): Replace implementation with one backed by random(3) algorithmConrad Meyer
2020-01-20libc: Delete unused rand.c ifdef TEST codeConrad Meyer
2019-12-14Deprecate sranddev(3) APIConrad Meyer
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2016-05-291) Unifdef USE_WEAK_SEEDING since it is too obsolete to support and makesAndrey A. Chernov
2016-04-18libc: do not include <sys/types.h> where <sys/param.h> was already includedAndriy Voskoboinyk
2015-09-20Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.Craig Rodrigues
2013-07-04Style fix noted by bde@Andrey A. Chernov
2013-07-04After fixing ranges restore POSIX requirement: rand() call withoutAndrey A. Chernov
2013-07-03In addition to prev. commit, for repeated rand_r(3) calls don't forgetAndrey A. Chernov
2013-07-031) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range,Andrey A. Chernov
2013-06-13Renumber clauses to reduce diffs to other versionsEd Maste
2013-04-02Replace access to /dev/random with the kernel pseudo-random numberXin LI
2012-10-09Remove undefined behavior from sranddev() andEitan Adler
2012-09-29libc: Use O_CLOEXEC for various internal file descriptors.Jilles Tjoelker
2007-12-11Fix typo in the commentAndrey A. Chernov
2007-01-09Per Regents of the University of Calfornia letter, remove advertisingWarner Losh
2003-02-17Back out "drop first N values" method of removing monotonically increasedAndrey A. Chernov
2003-02-05Since we drop NSHUFF values now, set default seed to what it becomesAndrey A. Chernov
2003-02-04For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}()Andrey A. Chernov
2003-02-03Park & Miller PRNG can be safely initialized with any value but 0 and stuckAndrey A. Chernov
2003-02-02For some combinations of variable sizes and RAND_MAX value rand_r()Andrey A. Chernov
2003-01-03Add missing #include "namespace.h".Tim J. Robbins
2002-03-22Fix the style of the SCM ID's.David E. O'Brien
2001-10-30Add a long-overdue nail to the deprecated /dev/urandom interfaceMark Murray
2001-06-07urandom(4) -> random(4) in comments.Dima Dorfman
2001-04-23Add #include "un-namespace.h"Andrey A. Chernov
2001-04-23srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allowAndrey A. Chernov
2001-04-23Add sranddev() since srand() is not vary much with seed, typical timeAndrey A. Chernov
2001-02-27Use formula with better random distribution for rand()Andrey A. Chernov
1999-05-24Added Posix rand_r function.Wes Peters
1994-05-27BSD 4.4 Lite Lib SourcesRodney W. Grimes