mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-16 03:48:28 +00:00
Prepared release v0.9.28 (#279)
This commit is contained in:
1 parent
c0b7016c3a
commit
c9474c55b7
11 files changed
+133
-53
No files matched your search
@@ -32,7 +32,7 @@ pub static ENCRYPTION: Lazy<Encryption> = Lazy::new(|| {
|
||||
// We use a cryptographically secure pseudo-random number generator
|
||||
// to generate the secret password & salt. ChaCha20Rng is the algorithm
|
||||
// of our choice:
|
||||
let mut rng = rand_chacha::ChaChaRng::from_entropy();
|
||||
let mut rng = rand_chacha::ChaChaRng::from_os_rng();
|
||||
|
||||
// Fill the secret key & salt with random bytes:
|
||||
rng.fill_bytes(&mut secret_key);
|
||||
|
||||
Reference in new issue
Block a user