* Add pubkey_new_rand(), mark Pubkey::new_rand() deprecated (cherry picked from commit0e68ed6a8d) * Add hash_new_rand(), mark Hash::new_rand() as deprecated (cherry picked from commit76f11c7dae) * Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand` (cherry picked from commit7bc073defe) # Conflicts: # programs/bpf/benches/bpf_loader.rs # runtime/benches/accounts.rs # runtime/src/accounts.rs * Run `codemod --extensions rs Hash::new_rand solana_sdk:#️⃣:new_rand` (cherry picked from commit17c391121a) * Remove unused pubkey::Pubkey imports (cherry picked from commit959880db60) # Conflicts: # runtime/src/accounts_index.rs * Resolve conflicts Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
		| @@ -228,8 +228,8 @@ mod tests { | ||||
|         assert_eq!(values_of(&matches, "multiple"), Some(vec![50, 39])); | ||||
|         assert_eq!(values_of::<u64>(&matches, "single"), None); | ||||
|  | ||||
|         let pubkey0 = Pubkey::new_rand(); | ||||
|         let pubkey1 = Pubkey::new_rand(); | ||||
|         let pubkey0 = solana_sdk::pubkey::new_rand(); | ||||
|         let pubkey1 = solana_sdk::pubkey::new_rand(); | ||||
|         let matches = app().clone().get_matches_from(vec![ | ||||
|             "test", | ||||
|             "--multiple", | ||||
| @@ -251,7 +251,7 @@ mod tests { | ||||
|         assert_eq!(value_of(&matches, "single"), Some(50)); | ||||
|         assert_eq!(value_of::<u64>(&matches, "multiple"), None); | ||||
|  | ||||
|         let pubkey = Pubkey::new_rand(); | ||||
|         let pubkey = solana_sdk::pubkey::new_rand(); | ||||
|         let matches = app() | ||||
|             .clone() | ||||
|             .get_matches_from(vec!["test", "--single", &pubkey.to_string()]); | ||||
| @@ -331,8 +331,8 @@ mod tests { | ||||
|  | ||||
|     #[test] | ||||
|     fn test_pubkeys_sigs_of() { | ||||
|         let key1 = Pubkey::new_rand(); | ||||
|         let key2 = Pubkey::new_rand(); | ||||
|         let key1 = solana_sdk::pubkey::new_rand(); | ||||
|         let key2 = solana_sdk::pubkey::new_rand(); | ||||
|         let sig1 = Keypair::new().sign_message(&[0u8]); | ||||
|         let sig2 = Keypair::new().sign_message(&[1u8]); | ||||
|         let signer1 = format!("{}={}", key1, sig1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user