[Bug 1170551] Call std::random_device failed when it is used by multiple threads