fixbug: use ::base::PseudoRandom as thread-safe
 ISSUE 33