Merge pull request #54 from richrod/ctr_prng_exhaustion

Thanks for the contribution.