jeudi 27 février 2020

is nanoid's random algorithm really better then random % alphabet?

in nanoid introduce page, the author told that it has a better algorithm and random % alphabet is a wrong method.

https://www.npmjs.com/package/nanoid#uniformity

i don't know is it real and why. hold there is a deduction(inference ?)

and also i had read the libray test code, when verify the distribution, count of alphabet will multiplication with a constance, why?

https://github.com/ai/nanoid/blob/master/test/non-secure.test.js#L49

hope you gay can read those english from google translation :)




Aucun commentaire:

Enregistrer un commentaire