secure-random 0.0.1

Secure Random
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/nimble-rust/workspace
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 */
use log::info;
use secure_random::{GetRandom, SecureRandom};

#[test_log::test]
fn check_random() {
    let mut random = GetRandom;
    let result = random.get_random_u64();
    info!("result: {}", result)
}