diff --git a/src/wild.py b/src/wild.py index 9e16ffb..e9d9c93 100644 --- a/src/wild.py +++ b/src/wild.py @@ -71,8 +71,8 @@ def reidentify(): reidentified_rng = rngtool.reidentifyByBlinks(Xorshift(*state), observed_blinks) waituntil = time.perf_counter() - diff = -((waituntil-offset_time)//(-1)) - reidentified_rng.getNextRandSequence(diff) + diff = int(-(-(waituntil-offset_time)//1)) + reidentified_rng.advances(max(diff,0)) state = reidentified_rng.getState() print("state(64bit 64bit)") @@ -86,7 +86,8 @@ def reidentify(): isUnown = False wild_prng.getNextRandSequence(2+isUnown) - advances = 0 + waituntil = time.perf_counter() + time.sleep(diff - (waituntil - offset_time)) while True: advances += 1