Retrieves random bytes from the system.
fn getrandom(buf: &mut [u8], flags: u32) -> i32
| Name | Description |
|---|---|
| buf | The buffer in which the bytes will be stored. |
| flags | Flags used while retrieving the data. |
Returns the number of bytes read or an error value.