Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Oct 15, 2024
1 parent 5598697 commit 972837e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workload/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ impl Keyspace {

// prepare 100MB of random value
let len = 100 * 1024 * 1024;
let mut vbuf = BytesMut::with_capacity(len);
let mut vbuf = BytesMut::zeroed(len);
rng.fill_bytes(&mut vbuf[0..len]);

let command_dist = WeightedAliasIndex::new(command_weights).unwrap();
Expand Down

0 comments on commit 972837e

Please sign in to comment.