From dfa31bc999272688fa47704567bc73671e68f5d3 Mon Sep 17 00:00:00 2001 From: TrashboxBobylev Date: Sun, 24 Mar 2019 16:38:58 +0000 Subject: [PATCH] Update randomizer.lua --- src/randomizer.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/randomizer.lua b/src/randomizer.lua index 59d2074..866b50c 100644 --- a/src/randomizer.lua +++ b/src/randomizer.lua @@ -72,15 +72,15 @@ function C:_mountDirectory(path) end function C:_seedRngesus() - local seedfile, bytes= lf.read(lf.getSourceBaseDirectory() + "seed.txt", 9); + local seedfile, bytes= lf.read(lf.getSourceBaseDirectory() + "seed.txt",10); local seed = "" if seedfile == nil then - logNotice('Okay, no seed file, generate new') - seed = tostring(os.time()) - math.randomseed(seed) + logNotice('Okay, no seed file, generate new') + seed = tostring(os.time()) + math.randomseed(seed) else - logNotice('Gathered seed from file') - seed = seedfile + logNotice('Gathered seed from file') + seed = seedfile end logNotice(('Offering seed "%s" to RNGesus'):format(seed)) end