summaryrefslogtreecommitdiff
path: root/lib/libc/gen/arc4random.c
AgeCommit message (Expand)Author
2024-07-13include: ssp: fortify <stdlib.h>Kyle Evans
2023-11-01libc: Purge unneeded cdefs.hWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2022-08-09arc4random(3): Reduce diff with OpenBSD.Xin LI
2020-10-12Fix building on Linux/macOS after r366622Alex Richardson
2020-10-10random(4) FenestrasX: Push root seed version to arc4random(3)Conrad Meyer
2020-04-13Sync with OpenBSD:Xin LI
2018-10-20Embedded chacha: Distinguish via dedicated macroConrad Meyer
2018-08-19Update userland arc4random() with OpenBSD's Chacha20 based arc4random().Xin LI
2018-08-18Split arc4random_uniform into it's own file and sync with OpenBSD.Xin LI
2018-03-21getentropy(3): Fallback to kern.arandom sysctl on older kernelsConrad Meyer
2018-02-24libc: Remove unused definitionConrad Meyer
2017-03-14Discard first 3072 bytes of RC4 keystream, this is a bandaidXin LI
2016-10-12Add comment on use of abort() in libcEd Maste
2016-10-03libc arc4_stir: use only kern.arandom sysctlEd Maste
2016-04-18libc: do not include <sys/types.h> where <sys/param.h> was already includedAndriy Voskoboinyk
2014-07-15libc/gen: small updates to code originating at OpenBSDPedro F. Giffuni
2012-09-29libc: Use O_CLOEXEC for various internal file descriptors.Jilles Tjoelker
2012-07-04Prefer sysctl to open/read/close for obtaining random data.Pawel Jakub Dawidek
2011-11-15Further reduce diffs with OpenBSD's arc4random. The main functionalDavid Schultz
2011-11-15Sync the style, comments, and variable names of arc4random.c withDavid Schultz
2008-09-09Return two fixes from previous backout which does not requireAndrey A. Chernov
2008-08-03Restored from previous backing out (because that is OpenBSD way, soAndrey A. Chernov
2008-07-25Per rwatson's request:Andrey A. Chernov
2008-07-22Fixes based on bde's feedback.Andrey A. Chernov
2008-07-22Change /dev/urandom to /dev/random since urandom marked asAndrey A. Chernov
2008-07-22In arc4random_uniform() detect simple "power of two" case andAndrey A. Chernov
2008-07-22Add arc4random_uniform() function (to avoid "modulo bias")Andrey A. Chernov
2008-07-22Increase initially dropped bytes from 512 to 768 (768 is alsoAndrey A. Chernov
2008-07-211) Use __packed attr on rdat structure to make it exact 128 bytes.Andrey A. Chernov
2008-07-211) Update copyright notice.Andrey A. Chernov
2008-07-21Implement arc4random_buf() functionAndrey A. Chernov
2008-07-21Decrease arc4_count only when needed and with proper bytes amount.Andrey A. Chernov
2008-07-211) Set stired flag after forced initialization.Andrey A. Chernov
2007-05-25ANSIfy function definitions, reduces diff against OpenBSD.Xin LI
2006-10-04Automatically re-stir every 400000 callsAndrey A. Chernov
2004-03-24Add locking so that arc4random(3) functions are all reentrant forBrian Feldman
2004-02-23Apply style(9).Brian Feldman
2004-02-10style cleanup: Remove duplicate $FreeBSD$ tags.Colin Percival
2004-01-20Discard the first 1024 bytes of output as suggested byDavid Schultz
2002-03-22Fix the style of the SCM ID's.David E. O'Brien
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-14Add arc4random() functions from OpenBSD. They are almost same as ourAndrey A. Chernov