diff options
author | Kim Alvefur <zash@zash.se> | 2017-09-16 17:22:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-09-16 17:22:51 +0200 |
commit | b8a921f9dd293d546708a0791c53e6f151cdb2d9 (patch) | |
tree | a42d3424af69930fa58ee14693c785df30adcd74 | |
parent | 94b1f12751309304d417629ca5aa94213aea57d8 (diff) | |
download | prosody-b8a921f9dd293d546708a0791c53e6f151cdb2d9.tar.gz prosody-b8a921f9dd293d546708a0791c53e6f151cdb2d9.zip |
util.random: Remove obsolete noop seed function
-rw-r--r-- | spec/util_uuid_spec.lua | 6 | ||||
-rw-r--r-- | util/random.lua | 4 |
2 files changed, 0 insertions, 10 deletions
diff --git a/spec/util_uuid_spec.lua b/spec/util_uuid_spec.lua index 6ebaf06d..95ae0a20 100644 --- a/spec/util_uuid_spec.lua +++ b/spec/util_uuid_spec.lua @@ -22,10 +22,4 @@ describe("util.uuid", function() end end); end); - - describe("#seed()", function() - it("should return nothing", function() - assert.is_nil(uuid.seed("random string here"), "seed doesn't return anything"); - end); - end); end); diff --git a/util/random.lua b/util/random.lua index 574e2e1c..83111655 100644 --- a/util/random.lua +++ b/util/random.lua @@ -11,9 +11,6 @@ if ok then return crand; end local urandom, urandom_err = io.open("/dev/urandom", "r"); -local function seed() -end - local function bytes(n) return urandom:read(n); end @@ -25,6 +22,5 @@ if not urandom then end return { - seed = seed; bytes = bytes; }; |