XLT icon indicating copy to clipboard operation
XLT copied to clipboard

Use ThreadLocalRandom

Open rschwietzke opened this issue 4 years ago • 2 comments

Use https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html instead of a thread local Random to reduce overhead and memory synchronization events.

rschwietzke avatar Apr 24 '20 13:04 rschwietzke

Looks like ThreadLocalRandom cannot be reseeded which is needed for our "replayable randomness" feature.

jowerner avatar Apr 28 '20 16:04 jowerner

I have something available based on it.unimi.dsl.util.SplitMix64RandomGenerator

rschwietzke avatar Jul 21 '21 09:07 rschwietzke