summaryrefslogtreecommitdiff
path: root/ext/crypto/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto/lib.rs')
-rw-r--r--ext/crypto/lib.rs4
1 files changed, 2 insertions, 2 deletions
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()
};