module [random](https://nim-lang.org/docs/random.html) from stdlib requires a call to randomize in order to have random results that change at every call. Indeed the following: ```nim import std / random echo rand(100) ``` produces always the same number when run again (on my machine: 3). If tempfile is imported instead the behaviour changes, since indeed [tempfile calls `randomize`](https://github.com/OpenSystemsLab/tempfile.nim/blob/96fe74e69838c99641e4f7138c987d5f346c26f1/tempfile.nim#L12) in its global space. so the following: ```nim import std / random import tempfile echo rand(100) ``` will produce always different numbers. Is it necessary to have this randomize call or could it be removed (or hidden behind the switch and documented this behaviour)? Btw, I have been happily using tempfile as a dependency in [nimib](https://github.com/pietroppeter/nimib) since its beginning, thanks for creating this!
module random from stdlib requires a call to randomize in order to have random results that change at every call. Indeed the following:
produces always the same number when run again (on my machine: 3).
If tempfile is imported instead the behaviour changes, since indeed tempfile calls
randomizein its global space. so the following:will produce always different numbers.
Is it necessary to have this randomize call or could it be removed (or hidden behind the switch and documented this behaviour)?
Btw, I have been happily using tempfile as a dependency in nimib since its beginning, thanks for creating this!