Do I need to re-init rack::random::uniform() on different threads?


I’m doing some stuff on a new thread, created with:

mThread = std::thread(&MyClass::task, this);

Now, if I do this:

void task() {
	float random = rack::random::uniform();

it always return 0.0f. Why? Do I need to re-init the whole random-core?


1 Like

Thanks for the reply. In any case, when I create a new Thread, I need to rack::random::init(); right? Even in v2?


1 Like