Remove dependency on PHP.

window.crypto.getRandomValues should be good enough.