signal_protocol_key_helper_get_random_sequence

Function signal_protocol_key_helper_get_random_sequence 

Source
pub unsafe extern "C" fn signal_protocol_key_helper_get_random_sequence(
    value: *mut c_int,
    max: c_int,
    global_context: *mut signal_context,
) -> c_int
Expand description

Generate a random number between 0 (inclusive) and the provided maximum (exclusive).

@param value set to the next random number @param max the maximum bound on the value of the random number @return 0 on success, or negative on failure