May I use MersenneTwister as I want ?
#4
We don't have a thread-local storage, so you'd need to implement one - not a trivial task, considering all the platforms we support. Also, you need some kind of management for when a new thread is created or another one ends, to create and destroy the objects.
Next, you have performance issues - will it be fast enough to be called as many times as required? And if the result contains any synchronization primitive, how much will it be susceptible to deadlocks?

Two easier solutions:
- let the caller provide a random number; the caller knows which thread it's on and can therefore decide on TickRand or a different generator
- use a different generator. I still think using cNoise would be the best bet here.
Reply
Thanks given by:


Messages In This Thread
RE: May I use MersenneTwister as I want ? - by xoft - 07-04-2013, 05:53 AM



Users browsing this thread: 2 Guest(s)