Skip to content

Commit 81b83e9

Browse files
committed
Add
1 parent b85097b commit 81b83e9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

stress/src/random.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use rand::{rngs::SmallRng, Rng, SeedableRng};
2+
3+
mod throughput;
4+
5+
fn main() {
6+
throughput::test_throughput(test_random_generation);
7+
}
8+
9+
fn test_random_generation() {
10+
let mut rng = SmallRng::from_entropy();
11+
let _index_first_attribute = rng.gen_range(0..10);
12+
let _index_second_attribute = rng.gen_range(0..10);
13+
let _index_third_attribute = rng.gen_range(0..10);
14+
}

0 commit comments

Comments
 (0)