NAME

Linux::Perl::getrandom

SYNOPSIS

my $numbytes = Linux::Perl::getrandom::x86_64->getrandom(
    buffer => \$buffer,
    flags => [ 'RANDOM', 'NONBLOCK' ],
);

# … or, platform-neutral:
my $numbytes = Linux::Perl::getrandom->getrandom(
    buffer => \$buffer,
    flags => [ 'RANDOM', 'NONBLOCK' ],
);

DESCRIPTION

This is an interface to Linux’s getrandom system call. This system call is documented only for kernel 3.17 and after; however, it appears to be present in some earlier kernel versions.