NAME
PAGI::Utils::Random - Cryptographically secure random bytes
SYNOPSIS
use PAGI::Utils::Random qw(secure_random_bytes);
my $bytes = secure_random_bytes(32);
FUNCTIONS
secure_random_bytes($length)
Returns $length cryptographically secure random bytes.
Tries /dev/urandom first, then falls back to Crypt::URandom. Dies if no secure source is available.
PLATFORM NOTES
On Unix, Linux, and macOS, /dev/urandom is used directly and no additional modules are needed. On systems without /dev/urandom (notably Windows), install Crypt::URandom to provide a secure random source.