This commit is contained in:
ntr
2018-12-21 23:29:00 +11:00
parent dfe290a132
commit 62cfe4ee1c
4 changed files with 16 additions and 23 deletions
+1 -4
View File
@@ -251,10 +251,7 @@ impl Rpc {
fn account_demo(_data: Vec<u8>, tx: &mut Transaction, _client: &mut WebSocket<TcpStream>) -> Result<RpcResponse, Error> {
let mut rng = thread_rng();
let acc_name: String = iter::repeat(())
.map(|()| rng.sample(Alphanumeric))
.take(8)
.collect();
let acc_name: String = iter::repeat(()).map(|()| rng.sample(Alphanumeric)).take(8).collect();
let account = account_create(AccountCreateParams { name: acc_name, password: "grepgrepgrep".to_string() }, tx)?;