Describe the bug
Use random.new(seed) on flash and ruffle to create an RNG object.
Observe that subsequent rng.random() calls generate a different sequence.
Expected behavior
They should generate an identical sequence
Content Location
https://github.com/PlatformRacing3/crossbridge-swc-lua/releases/download/v0.4.0/Main.swf
Affected platform
Desktop app
Operating system
Windows 10
Browser
No response
Additional information
This same bug causes desyncs on some Platform Racing 3 levels, since they rely on the same seed generating the same sequence between clients.
The culprit(s) are the two unsigned long long multiplications in the splitmix64 function in this file
Describe the bug
Use random.new(seed) on flash and ruffle to create an RNG object.
Observe that subsequent rng.random() calls generate a different sequence.
Expected behavior
They should generate an identical sequence
Content Location
https://github.com/PlatformRacing3/crossbridge-swc-lua/releases/download/v0.4.0/Main.swf
Affected platform
Desktop app
Operating system
Windows 10
Browser
No response
Additional information
This same bug causes desyncs on some Platform Racing 3 levels, since they rely on the same seed generating the same sequence between clients.
The culprit(s) are the two unsigned long long multiplications in the splitmix64 function in this file