Searched refs:rand (Results 1 – 25 of 57) sorted by relevance
123
1 use rand::Rng;65 rand::thread_rng().fill(&mut self.random_bytes); in populate()
4 use rand::Rng;56 rand::thread_rng().fill(cookie.as_mut()); in new()
12 pub mod rand; module
53 use rand::Rng;63 rand::thread_rng().fill(&mut block[0..original_length]); in padding_length_is_amount_of_bytes_excluding_the_padding_length_itself()
22 use rand::Rng;74 rand::thread_rng().fill(iv.as_mut_slice()); in encrypt()
10 use rand::Rng;61 rand::thread_rng().fill(&mut nonce[4..]); in encrypt()
11 use rand::Rng;113 rand::thread_rng().fill(&mut nonce[4..]); in encrypt()
4 use rand::{thread_rng, Rng};
15 rand = "0.8.5"
17 rand = "0.8.5"
3 use crate::rand::generate_cand_id;
4 use crate::rand::generate_cand_id;
21 rand = "0.8.5"
11 let samples: Vec<u8> = (0..TEST_LEN).map(|_| rand::random::<u8>()).collect(); in test_g7xx_payload()
23 rand = "0.8.5"
12 use rand::Rng;190 rand::thread_rng().fill(state.cookie.as_mut_slice()); in generate()
8 use rand::Rng;91 rand::thread_rng().fill(&mut b.0); in new()
69 let port = self.min_port + rand::random::<u16>() % (self.max_port - self.min_port + 1); in allocate_conn()
24 rand = "0.8.5"
22 sequence_number: Arc::new(AtomicU16::new(rand::random::<u16>())), in new_random_sequencer()
30 rand = "0.8.5"