mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-10 00:45:15 +00:00
Seed from file now really seed
This commit is contained in:
parent
9250d162c8
commit
d88a81fc98
|
@ -78,11 +78,11 @@ function C:_seedRngesus()
|
|||
if seedfile == nil or bytes < 10 then
|
||||
logWarning('Seed from file doesn' t exists or seems to be invalid, generate a new')
|
||||
seed = tostring(os.time())
|
||||
math.randomseed(seed)
|
||||
else
|
||||
logNotice('Gathered the seed from file "seed.txt"')
|
||||
seed = seedfile
|
||||
end
|
||||
math.randomseed(seed)
|
||||
logNotice(('Offering seed "%s" to RNGesus'):format(seed))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue