diff options
Diffstat (limited to 'util/random.lua')
-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"); |