Skip to content

Commit

Permalink
Tweak and document default rune set
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Feb 2, 2022
1 parent 330c76e commit 8d42b9a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion toktok.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ type Bucket struct {

// NewBucket returns a new bucket, which will contain tokens of tokenLength.
func NewBucket(tokenLength uint) (Bucket, error) {
return NewBucketWithRunes(tokenLength, "ACDEFHJKLMNPRSTUWXY3469")
// Problematic chars:
// - A and 4
// - B and 8
// - G and 6
// - I and 1
// - O and Q, 0
// - Q and O, 0
// - S and 5
// - U and V
// - Z and 2, 7
return NewBucketWithRunes(tokenLength, "ABCDEFHJKLMNPRSTUWXY369")
}

// NewBucketWithRunes returns a new bucket and lets you define which runes will
Expand Down

0 comments on commit 8d42b9a

Please sign in to comment.