Skip to content

Commit

Permalink
Merge pull request #640 from conjure-cp/update-rand
Browse files Browse the repository at this point in the history
update rand to 0.9.0
  • Loading branch information
ozgurakgun authored Feb 4, 2025
2 parents f637ff0 + 237f8b3 commit 308b788
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 conjure_oxide/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ structured-logger = "1.0.3"
schemars = "0.8.21"
toml = "0.8.19"
glob = "0.3.2"
rand = "0.8.5"
rand = "0.9.0"
tracing-appender = "0.2"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.18", features = ["ansi", "env-filter", "json"] }
Expand Down
4 changes: 2 additions & 2 deletions conjure_oxide/src/utils/conjure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ pub fn get_solutions_from_conjure(
) -> Result<Vec<BTreeMap<Name, Literal>>, EssenceParseError> {
// this is ran in parallel, and we have no guarantee by rust that invocations to this function
// don't share the same tmp dir.
let mut rng = rand::thread_rng();
let rand: i8 = rng.gen();
let mut rng = rand::rng();
let rand: i8 = rng.random();

let mut tmp_dir = std::env::temp_dir();
tmp_dir.push(Path::new(&rand.to_string()));
Expand Down

0 comments on commit 308b788

Please sign in to comment.