Skip to content

Commit

Permalink
Exclude potentially ambiguous letters from generated codes (0/O, 1/I)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 18, 2023
1 parent a0f6c61 commit c4ae216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math/big"
)

const codeLetters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
const codeLetters = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ"

func generateRandomBytes(n int) ([]byte, error) {
max := big.NewInt(int64(len(codeLetters)))
Expand Down

0 comments on commit c4ae216

Please sign in to comment.