Skip to content

Commit 82dd62b

Browse files
committed
Update README
1 parent bc98b8e commit 82dd62b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,16 @@ local saved = rng_enemies.state()
155155
rng_enemies.randomseed(saved)
156156
```
157157

158+
## Reference Implementations
159+
160+
The [`implementations/`](implementations/) directory contains reference implementations of the SplitMix64 algorithm for other languages:
161+
162+
- **C99**[`implementations/c/`](implementations/c/)
163+
- **Python 3**[`implementations/python/`](implementations/python/)
164+
- **TypeScript**[`implementations/typescript/`](implementations/typescript/)
165+
166+
These implementations produce identical random number sequences for the same seeds, which makes them suitable for **networked multiplayer games** that rely on deterministic PRNG state. By seeding all clients with the same value, you can guarantee consistent simulation results across platforms and languages!
167+
158168
### Advanced Usage
159169

160170
You can also globally substitute the built-in `math.random` with `splitmix64`:

0 commit comments

Comments
 (0)