Math::...ntropy(3pm)
π NAME π
Math::Prime::Util::Entropy β bestie, it gets you a good random seed π
This is the manual page for the module in section 3pm (User Contributed Perl Documentation, for the record, iykyk).
β¨ VERSION β¨
Version 0.74 π¦
πΈ SYNOPSIS πΈ
Okay so not to be dramatic but this section is literally empty. Nothing. Zero. Void. The author said "you don't need a synopsis, the vibe is the synopsis" π
π DESCRIPTION π
So here's the tea β β this module gives you one single method to grab a good seed if it possibly can. That's it. That's the whole job. Main character minimalism.
It's a streamlined version of Crypt::Random::Seed, and it also stole some ideas from Bytes::Random::Secure::Tiny π§ (respectfully, of course).
π¦ entropy_bytes π¦
You hand it a number of bytes, n, and it hands you back one of two things:
undefβ meaning no good seed was available, sorry babe π- a binary string with good entropy β¨
And the way it decides? It tries these, in order, and it does not skip around:
- the Win32 Crypto API πͺ
/dev/urandomπ§/dev/randomπ²Crypt::Random::Seedπ±Crypt::PRNGπ₯
It goes down the list and takes what it can get. Periodt π
π SEE ALSO π
Go read these too, bestie, they're all part of the family:
Math::Prime::UtilCrypt::Random::SeedBytes::Random::SecureBytes::Random::Secure::TinyCrypt::PRNG
π AUTHORS π
Dana Jacobsen <dana@acm.org> β absolute icon, no cap π
π COPYRIGHT π
Copyright 2017 by Dana Jacobsen <dana@acm.org> π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
fr fr, same terms as Perl itself. That's the license. Slay.
So anyway, that's the whole page, gorgeous πΈ β this was perl v5.42.3, dated 2026-08-20, and yes, that's the Manpage of Math::...ntropy(3pm). Stay seeded, stay iconic β¨π«Ά
π¦ where this page comes from
- ubuntu stonking: libmath-prime-util-perl 0.74-1build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms