tc39 / proposal-csprng

Cryptographically Secure Random Number Generation for ECMAScript
BSD 3-Clause "New" or "Revised" License
70 stars 9 forks source link

Examples for why this would be helpful #7

Open ctavan opened 4 years ago

ctavan commented 4 years ago

Problems like https://github.com/uuidjs/uuid/issues/392 are another good example of why it would be really helpful to have a CSPRNG baked into the JavaScript language (as @broofa noticed in https://github.com/uuidjs/uuid/issues/392#issuecomment-593622182).

ctavan commented 4 years ago

And there are more: Right now we are struggling to make a CSPRNG available for React Native environments, see https://github.com/uuidjs/uuid/issues/375

Interestingly, the users of these platforms have unknowingly been using the Math.random()-based fallback for uuid generation for years. It only became apparent when we removed that default fallback from the uuid library.