Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

build(deps): bump rand from 0.9.2 to 0.10.2 in /frontend/editor/src-tauri (#7065)

dependabot[bot]2533baaeb31e
diff --git a/frontend/editor/src-tauri/Cargo.lock b/frontend/editor/src-tauri/Cargo.lock
index 8e710cd776..77875af9df 100644
--- a/frontend/editor/src-tauri/Cargo.lock
+++ b/frontend/editor/src-tauri/Cargo.lock
@@ -4554,7 +4554,7 @@ dependencies = [
"objc2-app-kit",
"objc2-foundation",
"objc2-pdf-kit",
- "rand 0.9.2",
+ "rand 0.10.2",
"reqwest 0.12.28",
"serde",
"serde_json",
diff --git a/frontend/editor/src-tauri/Cargo.toml b/frontend/editor/src-tauri/Cargo.toml
index c372011489..c7ef871d84 100644
--- a/frontend/editor/src-tauri/Cargo.toml
+++ b/frontend/editor/src-tauri/Cargo.toml
@@ -45,7 +45,7 @@ url = "2.5"
urlencoding = "2.1"
sha2 = "0.11"
base64 = "0.22"
-rand = "0.9"
+rand = "0.10"
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.10"
diff --git a/frontend/editor/src-tauri/src/commands/auth.rs b/frontend/editor/src-tauri/src/commands/auth.rs
index b906bbbf7d..6734ba6025 100644
--- a/frontend/editor/src-tauri/src/commands/auth.rs
+++ b/frontend/editor/src-tauri/src/commands/auth.rs
@@ -6,7 +6,7 @@ use tauri_plugin_store::StoreExt;
use tiny_http::{Response, Server};
use sha2::{Sha256, Digest};
use base64::{Engine as _, engine::general_purpose::URL_SAFE_NO_PAD};
-use rand::Rng;
+use rand::RngExt;
use rand::distr::Alphanumeric;
const STORE_FILE: &str = "connection.json";