Skip to content

Commit

Permalink
feat: add AlphaNumNoAmbiguous rune set to randx
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Jan 27, 2025
1 parent 58ffe53 commit ad759ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions randx/sequence.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ var (
AlphaUpper = []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
// Numeric contains runes [0123456789].
Numeric = []rune("0123456789")
// AlphaNumNoAmbiguous is equivalent to AlphaNum but without visually ambiguous characters [0Oo1IlB8S5Z2].
AlphaNumNoAmbiguous = []rune("abcdefghijkmnpqrstuvwxyzACDEFGHJKLMNPQRTUVWXY34679")
)

// RuneSequence returns a random sequence using the defined allowed runes.
Expand Down

0 comments on commit ad759ed

Please sign in to comment.