mirror of
https://github.com/RoboSats/taptrade-core.git
synced 2026-01-24 04:14:03 +00:00
9 lines
193 B
Rust
9 lines
193 B
Rust
use rand_core::{OsRng, RngCore};
|
|
|
|
// uses operating system rng which is secure for cryptography
|
|
pub fn get_seed() -> [u8; 32] {
|
|
let mut seed = [0u8; 32];
|
|
OsRng.fill_bytes(&mut seed);
|
|
seed
|
|
}
|