forked from torrust/torrust-tracker
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlib.rs
More file actions
34 lines (28 loc) · 615 Bytes
/
lib.rs
File metadata and controls
34 lines (28 loc) · 615 Bytes
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
pub mod apis;
pub mod config;
pub mod databases;
pub mod http;
pub mod jobs;
pub mod located_error;
pub mod logging;
pub mod protocol;
pub mod setup;
pub mod stats;
pub mod tracker;
pub mod udp;
#[macro_use]
extern crate lazy_static;
pub mod static_time {
use std::time::SystemTime;
lazy_static! {
pub static ref TIME_AT_APP_START: SystemTime = SystemTime::now();
}
}
pub mod ephemeral_instance_keys {
use rand::rngs::ThreadRng;
use rand::Rng;
pub type Seed = [u8; 32];
lazy_static! {
pub static ref RANDOM_SEED: Seed = Rng::gen(&mut ThreadRng::default());
}
}