PseudoRandom makeSeededPRNG() {
static PseudoRandom globalPRNG(mongoBridgeGlobalParams.seed);
return PseudoRandom(globalPRNG.nextInt64());
}
This instance will not be valid as the process is shutting down.
Fix:
PseudoRandom makeSeededPRNG() {
static StaticImmortal globalPRNG =
PseudoRandom(mongoBridgeGlobalParams.seed);
return PseudoRandom(globalPRNG->nextInt64());
}
Caused BF-26284