Log

util-src/crand.c @ 13240:a378937103cb

description author age
util: Add compat for prosody module name change to C sources Kim Alvefur Fri, 17 Mar 2023 18:03:07 +0100
util-src: Remove Lua 5.1 compat macros Kim Alvefur Fri, 01 Jul 2022 21:21:21 +0200
util.crand: Reduce scope here too Kim Alvefur Sat, 23 Apr 2022 14:37:43 +0200
util.crand: Return early if a zero bytes are requested Kim Alvefur Sun, 03 Dec 2017 15:42:55 +0100
util.crand: Throw an error for sizes smaller than 1 byte Kim Alvefur Sun, 03 Dec 2017 15:36:20 +0100
util.crand: Make it possible to use arc4random on Linux (needs libbsd) Kim Alvefur Sun, 03 Dec 2017 15:21:12 +0100
util.crand: Use a small buffer on the stack for small pieces of random, should be faster Kim Alvefur Sun, 03 Dec 2017 15:03:25 +0100
util.crand: Remove unneeded cast Kim Alvefur Sun, 03 Dec 2017 14:14:35 +0100
util.crand: Silence signedness warning Kim Alvefur Sun, 03 Dec 2017 14:13:56 +0100
util.crand: Only keep return value of getrandom() as the others don't return partial results Kim Alvefur Sat, 02 Dec 2017 11:11:32 +0100
util.crand: Try getrandom() again until buffer is filled Kim Alvefur Sat, 02 Dec 2017 10:58:37 +0100
util.crand: Add comments about defines Kim Alvefur Fri, 01 Dec 2017 00:56:11 +0100
util.crand: Apply formatter Kim Alvefur Fri, 01 Dec 2017 00:29:25 +0100
util.crand: Reorder includes so system ones are first Kim Alvefur Fri, 01 Dec 2017 00:28:52 +0100
util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined Kim Alvefur Fri, 01 Dec 2017 00:27:37 +0100
util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?) Kim Alvefur Tue, 25 Apr 2017 01:35:13 +0200
util-src: Specify size of various tables to be allocated Kim Alvefur Thu, 09 Mar 2017 01:20:59 +0100
util.crand: Only include getrandom shiv with glibc older than 2.25 Kim Alvefur Thu, 02 Mar 2017 00:17:34 +0100
util.crand: Change argumen names to match some man page Kim Alvefur Thu, 02 Mar 2017 00:15:04 +0100
util.crand: Move comment block Kim Alvefur Wed, 01 Mar 2017 22:39:01 +0100
util.pposix, configure: Move _GNU_SOURCE macro into source files Kim Alvefur Wed, 01 Mar 2017 22:27:11 +0100
util.crand: Clarify that lua_error does not return Kim Alvefur Sat, 25 Feb 2017 18:12:24 +0100
util.crand: Throw error if OpenSSLs RNG is not seeded Kim Alvefur Sat, 25 Feb 2017 17:57:22 +0100
util.crand: TODOs Kim Alvefur Sun, 22 Jan 2017 09:55:52 +0100
util.crand: Comment about getrandom Kim Alvefur Sun, 22 Jan 2017 09:55:44 +0100
util.crand: Add comment describing purpose of module Kim Alvefur Sun, 22 Jan 2017 09:32:33 +0100
util.crand: Update copyright header Kim Alvefur Sun, 22 Jan 2017 09:31:56 +0100
util.crand: Raise hard errors Kim Alvefur Fri, 20 Jan 2017 12:23:55 +0100
util.crand: Remove seeding Kim Alvefur Fri, 20 Jan 2017 11:33:31 +0100
util.crand: Let Lua handle allocation, freeing and error handling for buffer Kim Alvefur Fri, 20 Jan 2017 11:52:46 +0100
util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3 Kim Alvefur Fri, 20 Jan 2017 11:41:07 +0100
util-src: Make C modules assert that the Lua runtime matches what it was compiled for Kim Alvefur Sun, 08 Jan 2017 14:21:08 +0100
util.crand: Silence compiler warning Kim Alvefur Wed, 25 May 2016 16:54:43 +0200
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias) Kim Alvefur Mon, 22 Feb 2016 22:56:05 +0100
util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG Kim Alvefur Mon, 22 Feb 2016 18:44:43 +0100