Software /
code /
prosody
Changeset
8241:e7496cff1215
util.random: Remove obsolete noop seed function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Sep 2017 17:22:51 +0200 |
parents | 8240:c803624cae3d |
children | 8243:292f61d9d30a |
files | spec/util_uuid_spec.lua util/random.lua |
diffstat | 2 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/util_uuid_spec.lua Sat Sep 16 10:16:08 2017 +0100 +++ b/spec/util_uuid_spec.lua Sat Sep 16 17:22:51 2017 +0200 @@ -22,10 +22,4 @@ 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);
--- a/util/random.lua Sat Sep 16 10:16:08 2017 +0100 +++ b/util/random.lua Sat Sep 16 17:22:51 2017 +0200 @@ -11,9 +11,6 @@ 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 @@ end return { - seed = seed; bytes = bytes; };