diff options
author | Kim Alvefur <zash@zash.se> | 2022-04-02 16:39:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-04-02 16:39:29 +0200 |
commit | 72d5a83e42444a596ab3df13114c0049fecf9d85 (patch) | |
tree | 3971d2f0d8ea96fed81f59c8bbe0e5c2116d995f | |
parent | ea2cd6d6768281229b220fa07b246c5b516ffeae (diff) | |
parent | 1e2d4026f9c914fb5f27f4ecc1d8dc90a4669d8e (diff) | |
download | prosody-72d5a83e42444a596ab3df13114c0049fecf9d85.tar.gz prosody-72d5a83e42444a596ab3df13114c0049fecf9d85.zip |
Merge 0.12->trunk
-rw-r--r-- | util/random.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/random.lua b/util/random.lua index 6782d7fa..3305172f 100644 --- a/util/random.lua +++ b/util/random.lua @@ -7,7 +7,7 @@ -- local ok, crand = pcall(require, "util.crand"); -if ok then return crand; end +if ok and pcall(crand.bytes, 1) then return crand; end local urandom, urandom_err = io.open("/dev/urandom", "r"); |