#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_random_int(stack: Stack) -> StackExpand description
Generate a cryptographically secure random integer in a range
Stack effect: ( min max – Int )
Returns a uniform random integer in the range [min, max). Uses rejection sampling to avoid modulo bias.
§Edge Cases
- If min >= max, returns min
- Uses the same CSPRNG as crypto.random-bytes
§Safety
Stack must have two Int values on top