Replaced shuffle() by thread safe shuffle(CRandom *) and finally removing them.