diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-22 18:46:59 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-22 18:46:59 +0100 |
commit | 9dd235d53bbb77efa67543e0057d093789ca2ddd (patch) | |
tree | 15d7151c2609ac821e0dd08e27f67795300b090d /util/random.lua | |
parent | cccb4ab09be9573c02e0d2684e062363cd7eb068 (diff) | |
parent | ed8199402ff2a84e57f256818ebc2c505c2ac41d (diff) | |
download | prosody-9dd235d53bbb77efa67543e0057d093789ca2ddd.tar.gz prosody-9dd235d53bbb77efa67543e0057d093789ca2ddd.zip |
Merge 0.10->trunk
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() |