You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLJS-2386 random-uuid should use a cryptographically strong PRNG if available
Using cryptographically strong PRNG in most cases closes the gap to the
implementation in Clojure where the implementation always uses a cryptographically
strong PRNG. Practical exploitation of Math.random predictability on V8 is known.
Most modern platforms have a randomUUID method, however this works only in a secure
context. The getRandomValues method works as a secure fallback. If none of that works,
the Math.random based is used as a last resort.
Dereferencing the internal uuid-gen-method unveils the uuid generation strategy.
0 commit comments