aboutsummaryrefslogtreecommitdiffstats
path: root/util/random.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-09-16 17:24:13 +0200
committerKim Alvefur <zash@zash.se>2017-09-16 17:24:13 +0200
commit6ab32342b28e6394ff81fcdc8918049ec9196a67 (patch)
tree3da207d7fab04a91070429e7f519ce653e86abcb /util/random.lua
parent989c0783cb8fd86874f5f0bdcbdba30522e5fcb3 (diff)
downloadprosody-6ab32342b28e6394ff81fcdc8918049ec9196a67.tar.gz
prosody-6ab32342b28e6394ff81fcdc8918049ec9196a67.zip
util.random: Add a _source field to match util.crand
Diffstat (limited to 'util/random.lua')
-rw-r--r--util/random.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/random.lua b/util/random.lua
index 574e2e1c..b2d0000d 100644
--- a/util/random.lua
+++ b/util/random.lua
@@ -27,4 +27,5 @@ end
return {
seed = seed;
bytes = bytes;
+ _source = "/dev/urandom";
};