Hacker GitHub

← All repos

sdrapkin/randstring

View on GitHub ↗ ★ 1 Go

Fast cryptographic random string generators for Go

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2025-07-08 · latest 2025-07-08

Mentions per year 3 mentions · busiest year 2025 (3)
20082026
  1. …and has more functionality. For random token-as-string generation Golang developers should be using https://github.com/sdrapkin/randstring instead of crypto/rand.Text (faster and more flexible).
  2. …variable length strings. These are different usecases (oh, and your benchmarks are inferior to https://github.com/sdrapkin/randstring ). Nothing to argue about.
  3. …variable-length strings. If you want fast cryptographically strong string generation, I recommend https://github.com/sdrapkin/randstring . It will likely be faster than cuid2.