prng: fixed pseudo-singleton code