We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New uses bits 0-6 of each random byte (masks with 63) and the two high random bits are discarded.
I think it would be better not to discard randomness.
go-nanoid/gonanoid.go
Lines 89 to 97 in 0cc1b25
It is possible to write a loop and output 4 characters per each 3 random bytes and handle the remainder separately.
Or maybe reuse the base64 encoding code from standard library.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
New uses bits 0-6 of each random byte (masks with 63) and the two high random bits are discarded.
I think it would be better not to discard randomness.
go-nanoid/gonanoid.go
Lines 89 to 97 in 0cc1b25
It is possible to write a loop and output 4 characters per each 3 random bytes and handle the remainder separately.
Or maybe reuse the base64 encoding code from standard library.
The text was updated successfully, but these errors were encountered: