Commit Graph

32 Commits (eeb98faa3a09ab9bdfeaa8ed9d2ff3d1d3a94de9)

Author SHA1 Message Date
Kim Alvefur 237f991e4f util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?) 9 years ago
Kim Alvefur 36ff81d81a util.crand: Return early if a zero bytes are requested 8 years ago
Kim Alvefur 96d9651ece util.crand: Throw an error for sizes smaller than 1 byte 8 years ago
Kim Alvefur abb425e70f util.crand: Make it possible to use arc4random on Linux (needs libbsd) 8 years ago
Kim Alvefur da570eb0a4 util.crand: Use a small buffer on the stack for small pieces of random, should be faster 8 years ago
Kim Alvefur af554a9feb util.crand: Remove unneeded cast 8 years ago
Kim Alvefur bc2a2bbd4d util.crand: Silence signedness warning 8 years ago
Kim Alvefur ebeea12c82 util.crand: Only keep return value of getrandom() as the others don't return partial results 8 years ago
Kim Alvefur 991280175b util.crand: Try getrandom() again until buffer is filled 8 years ago
Kim Alvefur b60447fad6 util.crand: Add comments about defines 8 years ago
Kim Alvefur a29f404ece util.crand: Apply formatter 8 years ago
Kim Alvefur bfaca2ef00 util.crand: Reorder includes so system ones are first 8 years ago
Kim Alvefur a128e97e03 util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined 8 years ago
Kim Alvefur 384687ffa4 util-src: Specify size of various tables to be allocated 9 years ago
Kim Alvefur 956c50882b util.crand: Only include getrandom shiv with glibc older than 2.25 9 years ago
Kim Alvefur 7dba99875f util.crand: Change argumen names to match some man page 9 years ago
Kim Alvefur dfb72918f3 util.crand: Move comment block 9 years ago
Kim Alvefur d205c78327 util.pposix, configure: Move _GNU_SOURCE macro into source files 9 years ago
Kim Alvefur 4707d5665d util.crand: Clarify that lua_error does not return 9 years ago
Kim Alvefur a330175614 util.crand: Throw error if OpenSSLs RNG is not seeded 9 years ago
Kim Alvefur 5b10d245e3 util-src: Make C modules assert that the Lua runtime matches what it was compiled for 9 years ago
Kim Alvefur 8bcfc38374 util.crand: TODOs 9 years ago
Kim Alvefur 2b7fcfdb13 util.crand: Comment about getrandom 9 years ago
Kim Alvefur d5a5325526 util.crand: Add comment describing purpose of module 9 years ago
Kim Alvefur 7b85ad2d53 util.crand: Update copyright header 9 years ago
Kim Alvefur 13f287acb9 util.crand: Raise hard errors 9 years ago
Kim Alvefur 8e052e0857 util.crand: Remove seeding 9 years ago
Kim Alvefur a59ab44459 util.crand: Let Lua handle allocation, freeing and error handling for buffer 9 years ago
Kim Alvefur 41485b40ab util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3 9 years ago
Kim Alvefur 478e9b9327 util.crand: Silence compiler warning 10 years ago
Kim Alvefur c35c696843 util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias) 10 years ago
Kim Alvefur ed8199402f util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG 10 years ago