diff util/random.lua @ 7085:343be83ddfa6

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Jan 2016 22:44:43 +0100
parents ac920b0f9eae
children 51cf09bb74eb
line wrap: on
line diff
--- a/util/random.lua	Mon Jan 11 13:44:48 2016 +0100
+++ b/util/random.lua	Sat Jan 16 22:44:43 2016 +0100
@@ -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)