Log

util-src/crand.c @ 10019:c30c81176752

description author age
util.crand: Return early if a zero bytes are requested Kim Alvefur 2017-12-03
util.crand: Throw an error for sizes smaller than 1 byte Kim Alvefur 2017-12-03
util.crand: Make it possible to use arc4random on Linux (needs libbsd) Kim Alvefur 2017-12-03
util.crand: Use a small buffer on the stack for small pieces of random, should be faster Kim Alvefur 2017-12-03
util.crand: Remove unneeded cast Kim Alvefur 2017-12-03
util.crand: Silence signedness warning Kim Alvefur 2017-12-03
util.crand: Only keep return value of getrandom() as the others don't return partial results Kim Alvefur 2017-12-02
util.crand: Try getrandom() again until buffer is filled Kim Alvefur 2017-12-02
util.crand: Add comments about defines Kim Alvefur 2017-11-30
util.crand: Apply formatter Kim Alvefur 2017-11-30
util.crand: Reorder includes so system ones are first Kim Alvefur 2017-11-30
util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined Kim Alvefur 2017-11-30
util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?) Kim Alvefur 2017-04-24
util-src: Specify size of various tables to be allocated Kim Alvefur 2017-03-09
util.crand: Only include getrandom shiv with glibc older than 2.25 Kim Alvefur 2017-03-01
util.crand: Change argumen names to match some man page Kim Alvefur 2017-03-01
util.crand: Move comment block Kim Alvefur 2017-03-01
util.pposix, configure: Move _GNU_SOURCE macro into source files Kim Alvefur 2017-03-01
util.crand: Clarify that lua_error does not return Kim Alvefur 2017-02-25
util.crand: Throw error if OpenSSLs RNG is not seeded Kim Alvefur 2017-02-25
util.crand: TODOs Kim Alvefur 2017-01-22
util.crand: Comment about getrandom Kim Alvefur 2017-01-22
util.crand: Add comment describing purpose of module Kim Alvefur 2017-01-22
util.crand: Update copyright header Kim Alvefur 2017-01-22
util.crand: Raise hard errors Kim Alvefur 2017-01-20
util.crand: Remove seeding Kim Alvefur 2017-01-20
util.crand: Let Lua handle allocation, freeing and error handling for buffer Kim Alvefur 2017-01-20
util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3 Kim Alvefur 2017-01-20
util-src: Make C modules assert that the Lua runtime matches what it was compiled for Kim Alvefur 2017-01-08
util.crand: Silence compiler warning Kim Alvefur 2016-05-25
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias) Kim Alvefur 2016-02-22
util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG Kim Alvefur 2016-02-22