Skip to main content

jrand48

Function jrand48 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn jrand48(xsubi: *mut c_ushort) -> c_long
Expand description

See https://pubs.opengroup.org/onlinepubs/9799919799/functions/drand48.html.

§Safety

The caller must ensure that xsubi is convertible to a &mut [c_ushort; 3].

§Panics

Panics if the function is unable to obtain a lock on the generator’s global state.