summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/random.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
2020-02-01rand(3): Replace implementation with one backed by random(3) algorithmConrad Meyer
2020-01-24random(3): Abstract routines into _r versions on explicit stateConrad Meyer
2020-01-24random(3): Abstract state into a single context objectConrad Meyer
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2016-10-12Add comment on use of abort() in libcEd Maste
2016-10-05abort in srandomdev if kern.arandom sysctl failsEd Maste
2016-07-26Fix typing of srandom() and initstate().Ed Schouten
2016-05-29Micro optimize: C standard guarantees that right shift for unsigned valueAndrey A. Chernov
2016-05-291) Unifdef USE_WEAK_SEEDING it is too obsolete to support and makes readingAndrey A. Chernov
2016-05-221) POSIX prohibits printing errors to stderr here and requireAndrey 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
2012-09-28Slight stylification.Dag-Erling Smørgrav
2012-08-17Make 'junk' volatile so that compilers won't be tempted to optimizeKevin Lo
2007-01-09Per Regents of the University of Calfornia letter, remove advertisingWarner Losh
2004-01-20Use 'uint32_t' instead of 'long' when a 32-bit integer is intended.David Schultz
2003-08-10For type 0 rng lower initial drop to 50, it is enough to hide linearityAndrey 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
2002-03-22Fix the style of the SCM ID's.David E. O'Brien
2002-03-21Remove __P() usage.David E. O'Brien
2002-03-21Remove 'register' keyword.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-23srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allowAndrey A. Chernov
2001-01-24Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen
2000-01-27Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans
2000-01-12Add three-tier symbol naming in support of POSIX thread cancellationJason Evans
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
1997-06-15srandomdev: use stack junk value in the fallback code tooAndrey A. Chernov
1997-06-14Instead of copying fallback code over and over in each program,Andrey A. Chernov
1997-03-29Remove orand* code as promised for the next releaseAndrey A. Chernov
1997-03-23Fix urandom reference in the commentAndrey A. Chernov
1997-03-23Add srandomdev() function (use "/dev/urandom" now)Andrey A. Chernov
1997-03-11Merge Lite2 changesPeter Wemm
1996-10-09Improve seeding, the random sequence did not vary matchAndrey A. Chernov
1995-05-30Remove trailing whitespace.Rodney W. Grimes
1994-09-05u_int -> unsigned int, so that we don't have to include <sys/types.h>Bruce Evans
1994-05-27BSD 4.4 Lite Lib SourcesRodney W. Grimes