Upgrade rand

This commit is contained in:
Greg Fitzgerald
2018-06-11 14:04:51 -06:00
parent 13f59adf61
commit 5435bb734c
4 changed files with 19 additions and 16 deletions

View File

@ -137,7 +137,9 @@ fn main() {
let last_id = client.get_last_id();
println!("Got last ID {:?}", last_id);
let rnd = GenKeys::new(demo.mint.keypair().public_key_bytes());
let mut seed = [0u8; 32];
seed.copy_from_slice(&demo.mint.keypair().public_key_bytes()[..32]);
let rnd = GenKeys::new(seed);
println!("Creating keypairs...");
let txs = demo.num_accounts / 2;