Switched from dev/random to calling the random library