Crypt::SysRandom(3pm)

Crypt::SysRandom3pm

Perl interface to system randomness

Usage

 use Crypt::SysRandom 'random_bytes';
 my $random = random_bytes(16);

Version

version 0.007

Overview

This module uses whatever interface is available to procure cryptographically random data from the system.

Functions

random_bytes($count)

This will fetch a string of $count random bytes containing cryptographically secure random date.

Backends

The current backends are tried in order:

•

Crypt::SysRandom::XS

•

"RtlGenRandom" using Win32::API

•

"/dev/urandom"

Author

Leon Timmermans <[email protected]>

From perl-crypt-sysrandom 0.007-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.