Open TropheusJ opened 7 months ago
Thanks!
I was actually planning on ripping out RandomUtil at some point because it's pretty much unneeded these days as it is from a time before RandomSource.
If i don't get around to doing that for the next release I'll get this merged.
RandomUtil may be accessed by multiple threads at the same time. This can cause errors. For example, spawning a rootling with C2ME installed:
Note that
createThreadSafe
is marked as deprecated. I think this is because sharing RandomSources like this is bad practice because it's no longer deterministic. Avoiding that is a significant refactor though, so this will do.