Use node's csprng for Random
Try to use window.crypto.getRandomValues on client.
Make Random with csprngs match the old interface.