Skip to content

Commit 6cac7d6

Browse files
authored
Merge pull request #560 from c-tonneslan/fix/random-charset-bias
fix(random): drop the unreachable '-' character from cr
2 parents fb7e672 + eb21ae7 commit 6cac7d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

random.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
// Range of characters for the secure string generation
16-
const cr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-"
16+
const cr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._"
1717

1818
// Bitmask sizes for the string generators (based on 93 chars total)
1919
//

0 commit comments

Comments
 (0)