Process::GetRandomNumber(): fix insecure RNG

This could have generated non-random output under error conditions in release
builds.