(no title)
CRidge | 11 years ago
Wouldn't that give relatively good chances that for a system with many users, two users would actually generate the same ID?
CRidge | 11 years ago
Wouldn't that give relatively good chances that for a system with many users, two users would actually generate the same ID?
bmm6o|11 years ago
What's harder to quantify is the role that sub-optimal random number generators would play in this. Implementation of Math.random is left to the browser, but you could imagine a simple LCG with just a 64-bit long as its state, initialized with the current time. Having only 64 bits of state is the limiting factor here, both for properly filling out the 72 bits of entropy (you can't) and for 2 users to have the same internal state in their LCG.