diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-16 22:44:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-16 22:44:43 +0100 |
commit | 48f8c23f4ab0e8400e20101960055eb29c4aa6f7 (patch) | |
tree | bde7b68581a288e5d3fc8a036c80502296972394 /util | |
parent | 69f9998d1641846399e3d2818da4fd07ae05739a (diff) | |
parent | 83e7c91e0130f27720406b87996c4c74b7cc0afe (diff) | |
download | prosody-48f8c23f4ab0e8400e20101960055eb29c4aa6f7.tar.gz prosody-48f8c23f4ab0e8400e20101960055eb29c4aa6f7.zip |
Merge 0.10->trunk
Diffstat (limited to 'util')
-rw-r--r-- | util/random.lua | 6 |
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) |