Replies: 3 comments 2 replies
-
fyi, I am currently using crypto/rand but that's 1) much slower than your impl and 2) we don't really need cryptographic secure property, the ID is just need to be unique. (math/rand is slower than yours but still faster than crypto/rand but Go stdlib is deprecating it so it seems there isn't a non-crypto PRNG in go stdlib anymore) |
Beta Was this translation helpful? Give feedback.
-
When talking about collision rate, what exactly do you mean? |
Beta Was this translation helpful? Give feedback.
-
For example, you have a comment in the code like this
Does this mean that calling |
Beta Was this translation helpful? Give feedback.
-
Hi, I am investigating using this rand.Read API to generate random IDs (size around, [4 - 255]) using only DNS allowed character set. Could you help me picturing a bit on the collision rate analysis? (I saw you have bias analysis, assuming that's for the distribution, but not sure whether I saw collision rate one)
Thank you!
Jim
Beta Was this translation helpful? Give feedback.
All reactions