We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cea23c commit 396e02aCopy full SHA for 396e02a
src/isaac.rs
@@ -246,7 +246,7 @@ impl Rand for IsaacRng {
246
unsafe {
247
let ptr = ret.rsl.as_mut_ptr() as *mut u8;
248
249
- let slice = slice::from_raw_mut_buf(&ptr, (RAND_SIZE * 4) as usize);
+ let slice = slice::from_raw_mut_buf(&ptr, RAND_SIZE_USIZE * 4);
250
other.fill_bytes(slice);
251
}
252
ret.cnt = 0;
@@ -489,7 +489,7 @@ impl Rand for Isaac64Rng {
489
490
491
492
- let slice = slice::from_raw_mut_buf(&ptr, (RAND_SIZE_64 * 8) as usize);
+ let slice = slice::from_raw_mut_buf(&ptr, RAND_SIZE_64 * 8);
493
494
495
0 commit comments