use uniform sampling in secure-rndstr #33

Merged
sugar merged 1 commit from sugar/forkey:use-uniform-sampling-in-secure-rndstr into main 2025-01-17 14:22:11 +00:00
Owner

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

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
leah approved these changes 2025-01-14 13:15:24 +00:00
sugar force-pushed use-uniform-sampling-in-secure-rndstr from 7abd68de48 to 04b82b5373 2025-01-16 16:45:10 +00:00 Compare
sugar force-pushed use-uniform-sampling-in-secure-rndstr from 04b82b5373 to e6872e4f3b 2025-01-17 11:42:52 +00:00 Compare
sugar merged commit 7c3eb990a6 into main 2025-01-17 14:22:11 +00:00
sugar deleted branch use-uniform-sampling-in-secure-rndstr 2025-01-17 14:22:11 +00:00
Sign in to join this conversation.
No description provided.