Now uses a more secure psuedo-random generator