# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1505575371 -7200 # Node ID e7496cff121532f7f77c1b13767265612359d055 # Parent c803624cae3d3f7989ed5ecb9c8431a3076141d5 util.random: Remove obsolete noop seed function diff -r c803624cae3d -r e7496cff1215 spec/util_uuid_spec.lua --- 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); diff -r c803624cae3d -r e7496cff1215 util/random.lua --- 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; };