mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2025-01-12 22:56:54 +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
|
if seedfile == nil or bytes < 10 then
|
||||||
logWarning('Seed from file doesn' t exists or seems to be invalid, generate a new')
|
logWarning('Seed from file doesn' t exists or seems to be invalid, generate a new')
|
||||||
seed = tostring(os.time())
|
seed = tostring(os.time())
|
||||||
math.randomseed(seed)
|
|
||||||
else
|
else
|
||||||
logNotice('Gathered the seed from file "seed.txt"')
|
logNotice('Gathered the seed from file "seed.txt"')
|
||||||
seed = seedfile
|
seed = seedfile
|
||||||
end
|
end
|
||||||
|
math.randomseed(seed)
|
||||||
logNotice(('Offering seed "%s" to RNGesus'):format(seed))
|
logNotice(('Offering seed "%s" to RNGesus'):format(seed))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue