mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 17:07:21 +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
@@ -8,7 +8,7 @@ use rocket::request::FromRequest;
|
||||
/// The API token used to authenticate requests.
|
||||
pub static API_TOKEN: Lazy<APIToken> = Lazy::new(|| {
|
||||
let mut token = [0u8; 32];
|
||||
let mut rng = rand_chacha::ChaChaRng::from_entropy();
|
||||
let mut rng = rand_chacha::ChaChaRng::from_os_rng();
|
||||
rng.fill_bytes(&mut token);
|
||||
|
||||
let token = APIToken::from_bytes(token.to_vec());
|
||||
|
||||
Reference in new issue
Block a user