mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
Update dependencies and refactor encryption logic
Updates multiple dependencies to their latest versions in Cargo.lock and Cargo.toml. Refactors encryption logic to use updated getrandom API. Improves tray speed rate display by using ab_glyph for font rendering.
This commit is contained in:
@@ -137,7 +137,7 @@ pub fn get_encryption_key() -> Result<Vec<u8>> {
|
||||
} else {
|
||||
// Generate and save new key
|
||||
let mut key = vec![0u8; 32];
|
||||
getrandom::getrandom(&mut key)?;
|
||||
getrandom::fill(&mut key)?;
|
||||
|
||||
// Ensure directory exists
|
||||
if let Some(parent) = key_path.parent() {
|
||||
|
||||
Reference in New Issue
Block a user