chore(deps): update rust crate rand to 0.9.0
This commit is contained in:
parent
daf3d035be
commit
af415ddf8f
4 changed files with 14 additions and 14 deletions
|
|
@ -1067,8 +1067,8 @@ impl DownloadQuery {
|
|||
}
|
||||
|
||||
fn get_download_range(offset: u64, size: Option<u64>) -> Range<u64> {
|
||||
let mut rng = rand::thread_rng();
|
||||
let chunk_size = rng.gen_range(CHUNK_SIZE_MIN..CHUNK_SIZE_MAX);
|
||||
let mut rng = rand::rng();
|
||||
let chunk_size = rng.random_range(CHUNK_SIZE_MIN..CHUNK_SIZE_MAX);
|
||||
let mut chunk_end = offset + chunk_size;
|
||||
|
||||
if let Some(size) = size {
|
||||
|
|
|
|||
Reference in a new issue