Updated code due to changes in type class ePRNG.