Skip to content

Commit

Permalink
Merge #262
Browse files Browse the repository at this point in the history
262: update rand to 0.5.x r=Dylan-DPC a=kinggoesgaming

# Description
Update `rand` to `0.5` and refactor code accordingly

# Motivation
Regular dependency updates

# Tests
Curent tests passing

# Related Issue(s)
supersedes #258 


Co-authored-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
  • Loading branch information
bors[bot] and kinggoesgaming committed Jun 12, 2018
2 parents ea8ee64 + 0e7e0ce commit 51146a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ version = "0.3"

[dependencies.rand]
optional = true
version = "0.4"
version = "0.5"

[dependencies.serde]
default-features = false
Expand Down
2 changes: 1 addition & 1 deletion src/v4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Uuid {
/// [`rand`]: https://crates.io/crates/rand
/// [`Uuid`]: ../struct.Uuid.html
pub fn new_v4() -> Self {
use rand::Rng;
use rand::RngCore;

let mut rng = rand::thread_rng();
let mut bytes = [0; 16];
Expand Down

0 comments on commit 51146a3

Please sign in to comment.