←back to thread

Inverting the Xorshift128 random number generator

(littlemaninmyhead.wordpress.com)
108 points rurban | 1 comments | | HN request time: 0.355s | source
Show context
delduca ◴[] No.45127193[source]
I have recently replaced Lua's random for this implemetation

https://nullonerror.org/2025/08/02/replacing-lua-s-math-rand...

replies(2): >>45128081 #>>45135705 #
1. shakna ◴[] No.45135705[source]
A small note: Lua 5.4 changed the way random happens.

Its now based on xoshiro256**.

Thats still not crytographically secure, but it is vastly faster.