Use of Insufficiently Random Values
The "java.util.UUID.randomUUID()" function in Scala.js prior to 1.10.0 generates predictable values which poses a security risk. In addition, the underlying PRNG has only 48 bits of state, which means that at most 2^48 different UUIDs may be generated by "randomUUID()". This can cause likely collisions between generated UUIDs.
CWE-330 - Use of Insufficiently Random Values
The software uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.