3 ms·
For awhile I was using a raw wasm program for a game engine's random number generator. Stored all the state in global variables, so no heap necessary Eventuall
by __s 3y ago
For awhile I was using a raw wasm program for a game engine's random number generator. Stored all the state in global variables, so no heap necessary
Eventually I moved the whole game engine into wasm & at that point it all got ported to Rust
https://github.com/serprex/openEtG/blob/8b7069cc52ec8db3406a69c8b6ac38a955b8dd16/src/rng.wat https://github.com/serprex/openEtG/blob/8b7069cc52ec8db3406a...