nothing of note

master
Avril 5 years ago
parent 964162f995
commit 97e623b9b4
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -61,7 +61,7 @@ Module `crandom` (requires FFI):
To use crandom, run sudo make install. (installs to /usr/local/lib and /usr/lib)
Prebuilt binary signed with https://flanchan.moe/flanchan.asc (2d6b35bb0e22b00e3adfb0b4f9171923fc8bd0be01f47f89bdbbedd759c36b82)
Prebuilt binary signed with https://flanchan.moe/flanchan.asc (b1e9dd6730c1307edf0104f1822aac1801a37028f2af8d2b8446eb7cfc4ec34a)
To build dependencies yourself run:
make build && sudo make install

Binary file not shown.

Binary file not shown.

@ -37,9 +37,10 @@ fn double() -> Result<f64, Error>
Ok( ((long & ((1i64 << 53) - 1)) as f64) * (1_f64 / ((1_i64 << 53) as f64)))
}
fn populate(mut value: &mut [u8]) -> Result<(), Error>
fn populate<T>(value: &mut T) -> Result<(), Error>
where T: AsMut<[u8]> + ?Sized
{
getrandom(&mut value)?;
getrandom(value.as_mut())?;
Ok(())
}

Loading…
Cancel
Save