aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-04-02 16:39:29 +0200
committerKim Alvefur <zash@zash.se>2022-04-02 16:39:29 +0200
commit72d5a83e42444a596ab3df13114c0049fecf9d85 (patch)
tree3971d2f0d8ea96fed81f59c8bbe0e5c2116d995f
parentea2cd6d6768281229b220fa07b246c5b516ffeae (diff)
parent1e2d4026f9c914fb5f27f4ecc1d8dc90a4669d8e (diff)
downloadprosody-72d5a83e42444a596ab3df13114c0049fecf9d85.tar.gz
prosody-72d5a83e42444a596ab3df13114c0049fecf9d85.zip
Merge 0.12->trunk
-rw-r--r--util/random.lua2
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");