torrust_tracker/shared/crypto/ephemeral_instance_keys.rs
1//! This module contains the ephemeral instance keys used by the application.
2//!
3//! They are ephemeral because they are generated at runtime when the
4//! application starts and are not persisted anywhere.
5use rand::rngs::ThreadRng;
6use rand::Rng;
7
8pub type Seed = [u8; 32];
9
10lazy_static! {
11 /// The random static seed.
12 pub static ref RANDOM_SEED: Seed = Rng::gen(&mut ThreadRng::default());
13}