Closed maxwellgerber closed 6 years ago
Addresses https://github.com/ericelliott/cuid/issues/78
In the browser we look for the crypto object or the msCrypto object. If it doesn't exist, we fall back to Math.random.
crypto
msCrypto
On the server we always use the crypto API.
Addresses https://github.com/ericelliott/cuid/issues/78
In the browser we look for the
crypto
object or themsCrypto
object. If it doesn't exist, we fall back to Math.random.On the server we always use the crypto API.