diff options
author | Luca Casonato <hello@lcas.dev> | 2022-05-05 12:41:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 12:41:59 +0200 |
commit | 242273e69b5f5add23393e8e96e241696eae88fb (patch) | |
tree | 2605cc3d7728c14c8c81c0a79337658577825fbf /ext/crypto | |
parent | e04f1f1f34656aed0faac88d63314726235cf4b8 (diff) |
chore: update deps (#14416)
Diffstat (limited to 'ext/crypto')
-rw-r--r-- | ext/crypto/Cargo.toml | 2 | ||||
-rw-r--r-- | ext/crypto/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/crypto/Cargo.toml b/ext/crypto/Cargo.toml index a7454ad24..8da99c983 100644 --- a/ext/crypto/Cargo.toml +++ b/ext/crypto/Cargo.toml @@ -36,4 +36,4 @@ sha-1 = "0.9.7" sha2 = "0.9.5" spki = "0.4.1" tokio = { version = "1.17", features = ["full"] } -uuid = { version = "0.8.2", features = ["v4"] } +uuid = { version = "1.0.0", features = ["v4"] } diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index 3515013f8..6063be1bd 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -792,8 +792,8 @@ pub fn op_crypto_random_uuid(state: &mut OpState) -> Result<String, AnyError> { let mut bytes = [0u8; 16]; seeded_rng.fill(&mut bytes); uuid::Builder::from_bytes(bytes) - .set_version(uuid::Version::Random) - .build() + .with_version(uuid::Version::Random) + .into_uuid() } else { uuid::Uuid::new_v4() }; |