#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_random_bytes(stack: Stack) -> StackExpand description
Generate cryptographically secure random bytes
Stack effect: ( Int – String )
Returns the random bytes as a lowercase hex string (2 chars per byte). Uses the operating system’s secure random number generator.
§Limits
- Maximum: 1024 bytes (to prevent memory exhaustion)
- Common use cases: 16-32 bytes for tokens/nonces, 32-64 bytes for keys
§Safety
Stack must have an Int value on top (number of bytes to generate)