aboutsummaryrefslogtreecommitdiffstats
path: root/util/random.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-16 22:44:43 +0100
committerKim Alvefur <zash@zash.se>2016-01-16 22:44:43 +0100
commitf763095b66a53b0fcc73f21a99478deabebd2a5b (patch)
treebde7b68581a288e5d3fc8a036c80502296972394 /util/random.lua
parente49c053133ec90f007ba2f8575773f3cf5c20b54 (diff)
parent92a6c7fbd21fd445f3bdeca240030264b1756961 (diff)
downloadprosody-f763095b66a53b0fcc73f21a99478deabebd2a5b.tar.gz
prosody-f763095b66a53b0fcc73f21a99478deabebd2a5b.zip
Merge 0.10->trunk
Diffstat (limited to 'util/random.lua')
-rw-r--r--util/random.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/random.lua b/util/random.lua
index 4963e98c..05f36aba 100644
--- a/util/random.lua
+++ b/util/random.lua
@@ -6,11 +6,9 @@
-- COPYING file in the source package for more information.
--
-local urandom = assert(io.open("/dev/urandom", "r+"));
+local urandom = assert(io.open("/dev/urandom", "r"));
-local function seed(x)
- urandom:write(x);
- urandom:flush();
+local function seed()
end
local function bytes(n)