smol-rs / fastrand

A simple and fast random number generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a way to seed the thread local default generator

notgull opened this issue · comments

It would be nice to have a way to seed the RNG generator used for the module-level methods and for seeding the Rng structs by default. Maybe a seed() function or a FASTRAND_TLS_SEED environment variable.

Not sure how I missed that, thank you!