use uniform sampling in secure-rndstr #33
No reviewers
Labels
No labels
bug
customization
duplicate
enhancement
feature parity
help wanted
high priority
invalid
low priority
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: woem.men/forkey#33
Loading…
Reference in a new issue
No description provided.
Delete branch "sugar/forkey:use-uniform-sampling-in-secure-rndstr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the current implementation is biased towards making some characters 25% more common, with the default alphabet the more common characters being '0', '8', 'h', 'q', 'z', 'I', 'R', and 'Z' (see https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias)
this changes the probability of all letters to be equal
7abd68de48
to04b82b5373
04b82b5373
toe6872e4f3b