Skip to content

Commit

Permalink
roulette: Stop seeding the random number generator
Browse files Browse the repository at this point in the history
The test harness shuold do this in some suitable way e.g. with values
that are reproducible but still contain entropy for the JIT.
  • Loading branch information
lukego committed Oct 9, 2016
1 parent b0a75b4 commit a71cd6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/roulette.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
-- produce non-deterministic performance.
-- See https://github.com/LuaJIT/LuaJIT/issues/218

math.randomseed(os.time())
-- (Let the test harness determine the random seed)
-- math.randomseed(os.time())

local population = 100e6
local live = 0
Expand Down

0 comments on commit a71cd6d

Please sign in to comment.