summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-25 02:14:59 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-25 02:16:20 -0400
commit14fe1e0f9681692133b2d76a362eca62b1c273a5 (patch)
tree887e48e8679a0ada318a2276474d1ebe0f93e35a /src
parent452c8d0d9edb9894c108b6d577806c7c9d0071dd (diff)
ID alphabet and generation length were never meant to be shared
Diffstat (limited to 'src')
-rw-r--r--src/id.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/id.rs b/src/id.rs
index 2fb5e0e..5ae61e9 100644
--- a/src/id.rs
+++ b/src/id.rs
@@ -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