Expand description
Utility functions for generating random values and byte sequences.
Functionsยง
- random
- The random() function returns an unpredictable value between 0 and 0xffffffff (included).
- random_
byte_ array - The random_byte_array() function fills the given mutable byte array with an unpredictable sequence of bytes.
- uniform
- The uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike random() % upper_bound, it does its best to guarantee a uniform distribution of the possible output values.