diff options
| -rw-r--r-- | src/id.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,14 +12,14 @@ use std::fmt; // // This leaves 23 ASCII characters, or about 4.52 bits of entropy per character // if generated with uniform probability. -pub const ALPHABET: [char; 23] = [ +const ALPHABET: [char; 23] = [ '1', '2', '3', '4', '6', '7', '8', '9', 'b', 'c', 'd', 'f', 'h', 'j', 'k', 'n', 'p', 'r', 's', 't', 'w', 'x', 'y', ]; // Pick enough characters per ID to make accidental collisions "acceptably" unlikely // without also making them _too_ unwieldy. This gives a fraction under 68 bits per ID. -pub const ID_SIZE: usize = 15; +const ID_SIZE: usize = 15; // Intended to be wrapped in a newtype that provides both type-based separation // from other identifier types, and a unique prefix to allow the intended type |
