Fixed bug in PASS key gen

Buffer overrun on the random bit pool during key generation.