Skip to content

Commit

Permalink
Merge pull request #111 from fertkir/dependabot/cargo/minor-and-patch…
Browse files Browse the repository at this point in the history
…-7a314dcd49

Bump rand from 0.8.5 to 0.9.0 in the minor-and-patch group
  • Loading branch information
fertkir authored Jan 28, 2025
2 parents 773789e + 6d1df36 commit ead71d7
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 16 deletions.
107 changes: 94 additions & 13 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ serde = "1.0.217"
chrono = { version = "0.4.39", features = ["serde"] }
byte-unit = "5.1.6"
dashmap = "6.1.0"
rand = "0.8.5"
rand = "0.9.0"
bytes = "1.9.0"
url = "2.5.4"
warp = "0.3.7"
Expand Down
4 changes: 2 additions & 2 deletions src/ext/uuid_mapper/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::atomic::{AtomicU32, Ordering};

use async_trait::async_trait;
use dashmap::DashMap;
use rand::distributions::Alphanumeric;
use rand::distr::Alphanumeric;
use rand::Rng;

use crate::core::traits::uuid_mapper::{MapperError, UuidMapper};
Expand All @@ -19,7 +19,7 @@ const MAX_CACHE_SIZE: u32 = 10_000;
impl<V: Clone> InMemoryUuidMapper<V> {
pub fn new() -> InMemoryUuidMapper<V> {
InMemoryUuidMapper {
session_key: rand::thread_rng()
session_key: rand::rng()
.sample_iter(&Alphanumeric)
.take(UUID_RANDOM_PART_LENGTH)
.map(char::from)
Expand Down

0 comments on commit ead71d7

Please sign in to comment.