Crypt::SysRandom(3)
π NAME π
okay so this is Crypt::SysRandom(3), aka Crypt::SysRandom β Perl interface to system randomness, brought to you by the User Contributed Perl Documentation crew. Bestie, it's your little doorway to system randomness, and the manual name is folded in right here like a name tag π«Ά.
β¨ VERSION β¨
version 0.007 β that's the version, no cap π
.
πΈ SYNOPSIS πΈ
okay so the quickstart is literally:
use Crypt::SysRandom 'random_bytes';
my $random = random_bytes(16);
π¦ DESCRIPTION π¦
This module uses whatever interface is available to procure cryptographically random data from the system. That's the whole vibe: it goes out and gets the good random stuff from the system π.
π₯ FUNCTIONS π₯
random_bytes($count)
This will fetch a string of $count random bytes containing cryptographically secure random date. Yes bestie, the original says date, not data β I'm not fixing the receipt, I'm just reading it π. It's still your random-bytes girlie, fr fr.
Backends
The current backends are tried in order:
Crypt::SysRandom::XS"RtlGenRandom"usingWin32::API/dev/urandom
That's the order, periodt. First one that works wins the vibe check π .
π AUTHOR π
Leon Timmermans <fawaka@gmail.com> β your author icon, slay π«Ά.
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2025 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
periodt, and that's the legal tea π.
with so much love from your fav random-bytes bestie π β source/version: perl v5.42.0; date: 2025-07-11; page: Crypt::SysRandom(3) π§
π¦ where this page comes from
- opensuse-leap 16.0: perl-Crypt-SysRandom 0.7.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms