Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-17 | 1 | -1/+1 |
| | |||||
* | util.random: Test whether util.crand works before using it (fix #1734) | Kim Alvefur | 2022-04-02 | 1 | -1/+1 |
| | | | | | | | | | | util.crand can be configured at compile time to use the Linux getrandom() system call, available from Linux 3.17, but it is still possible to load it with an older kernel lacking that system call, where attempting to use it throws an ENOSYS error. By testing for this on load we can fall back to /dev/urandom in this case. | ||||
* | util.random: Throw different error for EOL condition | Kim Alvefur | 2019-05-21 | 1 | -1/+5 |
| | |||||
* | util.random: Coerce error to string (thanks waqas) | Kim Alvefur | 2019-05-18 | 1 | -1/+1 |
| | | | | | In theory this could happen in an EOF condition, which should be impossible with a read from /dev/urandom. | ||||
* | util.random: Handle unlikely read errors from /dev/urandom (see #1313) | Kim Alvefur | 2019-05-18 | 1 | -1/+5 |
| | |||||
* | Merge 0.10->trunk | Kim Alvefur | 2017-09-16 | 1 | -0/+1 |
|\ | |||||
| * | util.random: Add a _source field to match util.crand | Kim Alvefur | 2017-09-16 | 1 | -0/+1 |
| | | |||||
* | | util.random: Remove obsolete noop seed function | Kim Alvefur | 2017-09-16 | 1 | -4/+0 |
|/ | |||||
* | util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD ↵ | Kim Alvefur | 2016-02-22 | 1 | -0/+3 |
| | | | | arc4random() CSPRNG | ||||
* | util.random: Restore friendlier error from 0.9/util.uuid | Kim Alvefur | 2016-01-31 | 1 | -1/+7 |
| | |||||
* | util.random: Open /dev/urandom read-only, make seed() a noop | Kim Alvefur | 2016-01-12 | 1 | -4/+2 |
| | |||||
* | util.random: Use /dev/urandom | Kim Alvefur | 2016-01-06 | 1 | -24/+4 |
| | |||||
* | util.random: Ensure at least 4 bytes of previous random state is used when ↵ | Kim Alvefur | 2014-09-18 | 1 | -2/+2 |
| | | | | generating new randomness | ||||
* | util.random: Switch to SHA512 | Kim Alvefur | 2014-09-18 | 1 | -2/+2 |
| | |||||
* | util.random: Generic util lib for generating strings of random bytes | Matthew Wild | 2014-09-02 | 1 | -0/+43 |