mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
1 parent
14a115d488
commit
e5fe50d3ce
25 files changed
+437
-344
No files matched your search
@@ -326,7 +326,7 @@ fn build_authorize_url(
|
||||
|
||||
fn generate_state() -> String {
|
||||
let mut bytes = [0u8; 32];
|
||||
rand::thread_rng().fill_bytes(&mut bytes);
|
||||
rand::rng().fill_bytes(&mut bytes);
|
||||
base64::engine::general_purpose::URL_SAFE_NO_PAD.encode(bytes)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user