pwgen
pwgen copied to clipboard
Fix distribution of random chars
Use floor of [0,1) * range as an uniform dist random. The previous code may result shorter password than requested. see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random