aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/rand.c
Commit message (Expand)AuthorAgeFilesLines
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
* libc: Purge unneeded cdefs.hWarner Losh2023-11-011-1/+0
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
* Fix race between first rand(3) calls with _once().Alexander Motin2021-07-211-4/+5
* Revert "Fix race between first rand(3) calls."Alexander Motin2021-07-211-7/+2
* Fix race between first rand(3) calls.Alexander Motin2021-07-201-2/+7
* rand(3): Replace implementation with one backed by random(3) algorithmConrad Meyer2020-02-011-5/+58
* libc: Delete unused rand.c ifdef TEST codeConrad Meyer2020-01-201-34/+0
* Deprecate sranddev(3) APIConrad Meyer2019-12-141-15/+10
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
* 1) Unifdef USE_WEAK_SEEDING since it is too obsolete to support and makesAndrey A. Chernov2016-05-291-41/+11
* libc: do not include <sys/types.h> where <sys/param.h> was already includedAndriy Voskoboinyk2016-04-181-1/+0
* Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.Craig Rodrigues2015-09-201-4/+3
* Style fix noted by bde@Andrey A. Chernov2013-07-041-4/+8
* After fixing ranges restore POSIX requirement: rand() call withoutAndrey A. Chernov2013-07-041-1/+6
* In addition to prev. commit, for repeated rand_r(3) calls don't forgetAndrey A. Chernov2013-07-031-1/+5
* 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range,Andrey A. Chernov2013-07-031-4/+16
* Renumber clauses to reduce diffs to other versionsEd Maste2013-06-131-1/+1
* Replace access to /dev/random with the kernel pseudo-random numberXin LI2013-04-021-21/+12
* Remove undefined behavior from sranddev() andEitan Adler2012-10-091-2/+1
* libc: Use O_CLOEXEC for various internal file descriptors.Jilles Tjoelker2012-09-291-1/+1
* Fix typo in the commentAndrey A. Chernov2007-12-111-1/+1
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
* Back out "drop first N values" method of removing monotonically increasedAndrey A. Chernov2003-02-171-7/+1
* Since we drop NSHUFF values now, set default seed to what it becomesAndrey A. Chernov2003-02-051-3/+3
* For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}()Andrey A. Chernov2003-02-041-1/+7
* Park & Miller PRNG can be safely initialized with any value but 0 and stuckAndrey A. Chernov2003-02-031-1/+4
* For some combinations of variable sizes and RAND_MAX value rand_r()Andrey A. Chernov2003-02-021-2/+4
* Add missing #include "namespace.h".Tim J. Robbins2003-01-031-0/+1
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+2
* Add a long-overdue nail to the deprecated /dev/urandom interfaceMark Murray2001-10-301-1/+1
* urandom(4) -> random(4) in comments.Dima Dorfman2001-06-071-1/+1
* Add #include "un-namespace.h"Andrey A. Chernov2001-04-231-0/+1
* srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allowAndrey A. Chernov2001-04-231-1/+1
* Add sranddev() since srand() is not vary much with seed, typical timeAndrey A. Chernov2001-04-231-0/+34
* Use formula with better random distribution for rand()Andrey A. Chernov2001-02-271-0/+26
* Added Posix rand_r function.Wes Peters1999-05-241-1/+52
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+54