diff options
Diffstat (limited to 'util/random.lua')
-rw-r--r-- | util/random.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/random.lua b/util/random.lua index e4b4a700..574e2e1c 100644 --- a/util/random.lua +++ b/util/random.lua @@ -6,6 +6,9 @@ -- COPYING file in the source package for more information. -- +local ok, crand = pcall(require, "util.crand"); +if ok then return crand; end + local urandom, urandom_err = io.open("/dev/urandom", "r"); local function seed() |