Bump rand to 0.10.2
RngCore re-export dropped in 0.10; fill_bytes now via rand::Rng.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 files changed,
+6 insertions,
-44 deletions
| 307 |
307 |
|
"chrono",
|
| 308 |
308 |
|
"open",
|
| 309 |
309 |
|
"parking_lot",
|
| 310 |
|
- |
"rand 0.9.5",
|
|
310 |
+ |
"rand",
|
| 311 |
311 |
|
"rusqlite",
|
| 312 |
312 |
|
"serde",
|
| 313 |
313 |
|
"serde_json",
|
| 3584 |
3584 |
|
]
|
| 3585 |
3585 |
|
|
| 3586 |
3586 |
|
[[package]]
|
| 3587 |
|
- |
name = "ppv-lite86"
|
| 3588 |
|
- |
version = "0.2.21"
|
| 3589 |
|
- |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3590 |
|
- |
checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
|
| 3591 |
|
- |
dependencies = [
|
| 3592 |
|
- |
"zerocopy",
|
| 3593 |
|
- |
]
|
| 3594 |
|
- |
|
| 3595 |
|
- |
[[package]]
|
| 3596 |
3587 |
|
name = "primal-check"
|
| 3597 |
3588 |
|
version = "0.3.4"
|
| 3598 |
3589 |
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3719 |
3710 |
|
"bytes",
|
| 3720 |
3711 |
|
"getrandom 0.4.3",
|
| 3721 |
3712 |
|
"lru-slab",
|
| 3722 |
|
- |
"rand 0.10.2",
|
|
3713 |
+ |
"rand",
|
| 3723 |
3714 |
|
"rand_pcg",
|
| 3724 |
3715 |
|
"ring",
|
| 3725 |
3716 |
|
"rustc-hash 2.1.3",
|
| 3769 |
3760 |
|
|
| 3770 |
3761 |
|
[[package]]
|
| 3771 |
3762 |
|
name = "rand"
|
| 3772 |
|
- |
version = "0.9.5"
|
| 3773 |
|
- |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3774 |
|
- |
checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
|
| 3775 |
|
- |
dependencies = [
|
| 3776 |
|
- |
"rand_chacha",
|
| 3777 |
|
- |
"rand_core 0.9.5",
|
| 3778 |
|
- |
]
|
| 3779 |
|
- |
|
| 3780 |
|
- |
[[package]]
|
| 3781 |
|
- |
name = "rand"
|
| 3782 |
3763 |
|
version = "0.10.2"
|
| 3783 |
3764 |
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3784 |
3765 |
|
checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
|
| 3789 |
3770 |
|
]
|
| 3790 |
3771 |
|
|
| 3791 |
3772 |
|
[[package]]
|
| 3792 |
|
- |
name = "rand_chacha"
|
| 3793 |
|
- |
version = "0.9.0"
|
| 3794 |
|
- |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3795 |
|
- |
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
|
| 3796 |
|
- |
dependencies = [
|
| 3797 |
|
- |
"ppv-lite86",
|
| 3798 |
|
- |
"rand_core 0.9.5",
|
| 3799 |
|
- |
]
|
| 3800 |
|
- |
|
| 3801 |
|
- |
[[package]]
|
| 3802 |
3773 |
|
name = "rand_core"
|
| 3803 |
3774 |
|
version = "0.6.4"
|
| 3804 |
3775 |
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3809 |
3780 |
|
|
| 3810 |
3781 |
|
[[package]]
|
| 3811 |
3782 |
|
name = "rand_core"
|
| 3812 |
|
- |
version = "0.9.5"
|
| 3813 |
|
- |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3814 |
|
- |
checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
|
| 3815 |
|
- |
dependencies = [
|
| 3816 |
|
- |
"getrandom 0.3.4",
|
| 3817 |
|
- |
]
|
| 3818 |
|
- |
|
| 3819 |
|
- |
[[package]]
|
| 3820 |
|
- |
name = "rand_core"
|
| 3821 |
3783 |
|
version = "0.10.1"
|
| 3822 |
3784 |
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 3823 |
3785 |
|
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
|
| 4833 |
4795 |
|
"chrono",
|
| 4834 |
4796 |
|
"keyring",
|
| 4835 |
4797 |
|
"parking_lot",
|
| 4836 |
|
- |
"rand 0.9.5",
|
|
4798 |
+ |
"rand",
|
| 4837 |
4799 |
|
"reqwest",
|
| 4838 |
4800 |
|
"rusqlite",
|
| 4839 |
4801 |
|
"serde",
|
| 40 |
40 |
|
uuid = { version = "1", features = ["v4"] }
|
| 41 |
41 |
|
base64 = "0.22"
|
| 42 |
42 |
|
chrono = "0.4"
|
| 43 |
|
- |
rand = "0.9"
|
|
43 |
+ |
rand = "0.10"
|
| 44 |
44 |
|
reqwest = { version = "0.13", default-features = false, features = ["json", "native-tls"] }
|
| 45 |
45 |
|
semver = "1"
|
| 46 |
46 |
|
open = "5"
|
| 26 |
26 |
|
|
| 27 |
27 |
|
/// Generate a random PKCE code verifier (32 bytes → base64url).
|
| 28 |
28 |
|
pub fn generate_code_verifier() -> String {
|
| 29 |
|
- |
use rand::RngCore;
|
|
29 |
+ |
use rand::Rng;
|
| 30 |
30 |
|
let mut buf = [0u8; 32];
|
| 31 |
31 |
|
rand::rng().fill_bytes(&mut buf);
|
| 32 |
32 |
|
URL_SAFE_NO_PAD.encode(buf)
|
| 40 |
40 |
|
|
| 41 |
41 |
|
/// Generate a random CSRF state parameter (16 bytes → base64url).
|
| 42 |
42 |
|
pub fn generate_state() -> String {
|
| 43 |
|
- |
use rand::RngCore;
|
|
43 |
+ |
use rand::Rng;
|
| 44 |
44 |
|
let mut buf = [0u8; 16];
|
| 45 |
45 |
|
rand::rng().fill_bytes(&mut buf);
|
| 46 |
46 |
|
URL_SAFE_NO_PAD.encode(buf)
|