Some tests might spin up several threads and FastRandomContext
is not thread safe.
Fix that by giving each thread their own randomness context (as opposed to e.g. making FastRandomContext
thread safe or add locks elsewhere).
Also, add the g_
prefix to it (according to developer notes), since I am touching it anyway.