hydro_init() does not set hydro_random_context.initialized to 1
but hydro_random_check_initialized() is calling hydro_random_init() again and sets the necessary bits afterwards.
One possible solution would be to set hydro_random_context.initialized to 1 hydro_random_init() or even in hydro_init()
I noticed
hydro_random_init()
get called fromhydro_init()
as well as in the first call to a random number function throughhydro_random_check_initialized()
hydro_init()
does not sethydro_random_context.initialized
to 1 buthydro_random_check_initialized()
is callinghydro_random_init()
again and sets the necessary bits afterwards.One possible solution would be to set
hydro_random_context.initialized
to 1hydro_random_init()
or even inhydro_init()