Function osrand::random_u16
source · pub fn random_u16() -> Result<u16, Error>
Expand description
Gets a u16
from the RNG device. Do not use this function if
you require multiple random numbers, as each use will be a single
read.
§Errors
Returns an io error if there is a problem reading from the RNG device