Skip to content

Commit

Permalink
Replace nanorand with rand (see #251)
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Dec 10, 2023
1 parent d40d161 commit 2d731f1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 10 deletions.
44 changes: 37 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ console = { version = "0.15.7", default-features = false }
ctrlc = "3.4.1"
fend-core.workspace = true
home = "0.5.5"
nanorand = { version = "0.7.0", default-features = false, features = ["std", "wyrand"] }
native-tls = { version = "0.2.11", optional = true }
rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"] }
rustyline = { version = "13.0.0", default-features = false, features = ["with-file-history", "custom-bindings"] }
serde = { version = "1.0.193", default-features = false }
toml = { version = "0.8.8", default-features = false, features = ["parse"] }
Expand Down
3 changes: 1 addition & 2 deletions cli/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,5 @@ impl<'a> Context<'a> {
}

fn random_u32() -> u32 {
let mut rng = nanorand::WyRand::new();
nanorand::Rng::generate(&mut rng)
rand::random()
}

0 comments on commit 2d731f1

Please sign in to comment.