From 9eca305e75010e30342486a4139846faf1b3eccb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Mar 2019 14:47:48 -0300 Subject: 'math.randomseed()' sets a somewhat random seed When called with no arguments, 'math.randomseed' uses time and ASLR to generate a somewhat random seed. the initial seed when Lua starts is generated this way. --- testes/math.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testes') diff --git a/testes/math.lua b/testes/math.lua index dc5b84f6..b010ff6c 100644 --- a/testes/math.lua +++ b/testes/math.lua @@ -838,7 +838,7 @@ do assert(rand * 2^floatbits == res) end -math.randomseed(0, os.time()) +math.randomseed() do -- test random for floats local randbits = math.min(floatbits, 64) -- at most 64 random bits -- cgit v1.2.3-55-g6feb