forked from rust-random/rand
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Milestone
Description
The consensus on this seems to be that Result is better in general, but there is little point for the simple next_u* functions, resulting in the following members of Rng or similar traits
fn next_u32(&mut self) -> u32;
// other next_u* ...
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>;
// possibly also a panicing fill function:
fn fill_bytes(&mut self, dest: &mut [u8]);