mirror of
https://github.com/dnlbauer/WHAM.git
synced 2026-09-10 22:25:31 +00:00
update rand lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use rand::{SeedableRng, StdRng, Rng};
|
||||
use rand::prelude::*;
|
||||
use super::histogram::{Dataset};
|
||||
use super::perform_wham;
|
||||
use super::{Config,calc_free_energy};
|
||||
|
||||
@@ -3,6 +3,7 @@ extern crate wham;
|
||||
extern crate clap;
|
||||
extern crate rand;
|
||||
|
||||
use rand::prelude::*;
|
||||
use clap::App;
|
||||
use wham::Config;
|
||||
use wham::errors::*;
|
||||
@@ -49,7 +50,6 @@ fn cli() -> Result<Config> {
|
||||
.chain_err(|| "Cannot parse bootstrap iteration.")?;
|
||||
let bootstrap_seed: u64 = matches.value_of("bootstrap_seed")
|
||||
.unwrap_or({
|
||||
use rand::Rng;
|
||||
let mut rng = rand::thread_rng();
|
||||
&rng.gen::<u32>().to_string()
|
||||
}).parse()
|
||||
|
||||
Reference in New Issue
Block a user