⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

generate_canary

Function generate_canary 

Source
pub fn generate_canary() -> u64
Expand description

Generate a new random canary value.

Returns a 64-bit random value suitable for use as a stack canary. The value is guaranteed to be non-zero (zero canaries are weak against null-byte string overflow attacks).