Fix rng.js for modern browsers

getRandomValues was not being called, and an array of zeros was being returned.