wasmium_random/
common.rs

1// Range for integers 0-9
2pub(crate) const NUMERIC: [u8; 10] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
3
4// Range for alphanumeric letters and numbers 0-9,A-Z,a-z
5pub(crate) const ALPHANUMERIC: [&str; 62] = [
6    "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i",
7    "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B",
8    "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
9    "V", "W", "X", "Y", "Z",
10];
11
12// Range for alphanumeric letters and numbers 0-9,A-Z,a-z
13pub(crate) const ALPHABET: [&str; 52] = [
14    "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s",
15    "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L",
16    "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
17];
18
19/// `WasmiumRandom` contains helper method to generate different random byte length.
20/// See module level documentation for more details [crate]
21pub struct WasmiumRandom;