1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use random;
const TOK_SIZE: usize = 64;
/// An authentication token that can be compared in constant time
///
/// ```
///
/// use lockchain_core::users::auth::Token;
/// let t1 = Token::new();
/// let t2 = Token::new();
///
/// // Will fail, but no expose failure length
/// assert_eq!(t1, t2);
/// ```