aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/arc4random.c
Commit message (Expand)AuthorAgeFilesLines
* arc4random(3): Reduce diff with OpenBSD.Xin LI2022-08-241-2/+8
* Fix building on Linux/macOS after r366622Alex Richardson2020-10-121-0/+5
* random(4) FenestrasX: Push root seed version to arc4random(3)Conrad Meyer2020-10-101-0/+38
* Sync with OpenBSD:Xin LI2020-04-131-2/+2
* Embedded chacha: Distinguish via dedicated macroConrad Meyer2018-10-201-0/+1
* Update userland arc4random() with OpenBSD's Chacha20 based arc4random().Xin LI2018-08-191-186/+124
* Split arc4random_uniform into it's own file and sync with OpenBSD.Xin LI2018-08-181-35/+0
* getentropy(3): Fallback to kern.arandom sysctl on older kernelsConrad Meyer2018-03-211-3/+3
* libc: Remove unused definitionConrad Meyer2018-02-241-1/+0
* Discard first 3072 bytes of RC4 keystream, this is a bandaidXin LI2017-03-141-1/+1
* Add comment on use of abort() in libcEd Maste2016-10-121-2/+9
* libc arc4_stir: use only kern.arandom sysctlEd Maste2016-10-031-23/+5
* libc: do not include <sys/types.h> where <sys/param.h> was already includedAndriy Voskoboinyk2016-04-181-1/+0
* libc/gen: small updates to code originating at OpenBSDPedro F. Giffuni2014-07-151-15/+4
* libc: Use O_CLOEXEC for various internal file descriptors.Jilles Tjoelker2012-09-291-1/+1
* Prefer sysctl to open/read/close for obtaining random data.Pawel Jakub Dawidek2012-07-041-5/+35
* Further reduce diffs with OpenBSD's arc4random. The main functionalDavid Schultz2011-11-151-33/+30
* Sync the style, comments, and variable names of arc4random.c withDavid Schultz2011-11-151-39/+33
* Return two fixes from previous backout which does not requireAndrey A. Chernov2008-09-091-1/+2
* Restored from previous backing out (because that is OpenBSD way, soAndrey A. Chernov2008-08-031-12/+16
* Per rwatson's request:Andrey A. Chernov2008-07-251-29/+17
* Fixes based on bde's feedback.Andrey A. Chernov2008-07-221-9/+9
* Change /dev/urandom to /dev/random since urandom marked asAndrey A. Chernov2008-07-221-1/+1
* In arc4random_uniform() detect simple "power of two" case andAndrey A. Chernov2008-07-221-1/+5
* Add arc4random_uniform() function (to avoid "modulo bias")Andrey A. Chernov2008-07-221-0/+45
* Increase initially dropped bytes from 512 to 768 (768 is alsoAndrey A. Chernov2008-07-221-3/+3
* 1) Use __packed attr on rdat structure to make it exact 128 bytes.Andrey A. Chernov2008-07-211-10/+17
* 1) Update copyright notice.Andrey A. Chernov2008-07-211-43/+53
* Implement arc4random_buf() functionAndrey A. Chernov2008-07-211-1/+16
* Decrease arc4_count only when needed and with proper bytes amount.Andrey A. Chernov2008-07-211-1/+2
* 1) Set stired flag after forced initialization.Andrey A. Chernov2008-07-211-1/+2
* ANSIfy function definitions, reduces diff against OpenBSD.Xin LI2007-05-251-17/+8
* Automatically re-stir every 400000 callsAndrey A. Chernov2006-10-041-2/+4
* Add locking so that arc4random(3) functions are all reentrant forBrian Feldman2004-03-241-10/+54
* Apply style(9).Brian Feldman2004-02-231-2/+6
* style cleanup: Remove duplicate $FreeBSD$ tags.Colin Percival2004-02-101-2/+0
* Discard the first 1024 bytes of output as suggested byDavid Schultz2004-01-201-1/+13
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+5
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-241-0/+2
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-271-3/+3
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-01-121-3/+3
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
* Add arc4random() functions from OpenBSD. They are almost same as ourAndrey A. Chernov1997-06-141-0/+172