paralleldrive / cuid

Collision-resistant ids optimized for horizontal scaling and performance.
Other
3.42k stars 123 forks source link

Can crypto.getRandomValues(new Uint32Array(1))[0] / lim ever be negative? #199

Closed fireflysemantics closed 1 year ago

fireflysemantics commented 4 years ago

Curious what ya'll think about this:

https://stackoverflow.com/questions/60675465/can-crypto-getrandomvaluesnew-uint32array10-lim-ever-be-negative/60675921#60675921

fireflysemantics commented 4 years ago

Also some related comments in here:

https://stackoverflow.com/questions/60668998/converting-getrandomvalue-browser-from-cuid-to-typescript