Properly scope call to allocate RNG.