2026-08-09 11:00 UTC
Ways random ID code goes quietly wrong: alphabet[b % len] skews the distribution, a UUIDv7 built version-4 style throws away half its entropy, a failing custom reader gets silently swapped for another source, and (0, nil) from an io.Reader can spin forever. The random package in nurago walks each trap with its fix and the test that pins it.
https://tecnick.com/articles/nurago-random/
#golang
Replies (0)
No replies.