[fpc-devel] Random thread-safe

Ondrej Pokorny lazarus at kluug.net
Thu Jan 28 13:22:43 CET 2016

Regarding: http://bugs.freepascal.org/view.php?id=29526 (because I 
cannot answer on closed issues).

 >> Also: the entire state of the random number generator consists of 
regular global variables, so it is not safe to use it from multiple 
threads in parallel.

Would it make sense to you to make random thread-safe? E.g. with the use 
of "threadvar" instead of "var" for the global variables in question?


More information about the fpc-devel mailing list