UUID::Random::Patch::UseMRS - Make UUID::Random use Math::Random::Secure's rand()
This document describes version 0.030 of UUID::Random::Patch::UseMRS (from Perl distribution UUID-Random-Patch-UseMRS), released on 2021-01-24.
use UUID::Random::Patch::UseMRS; say UUID::Random::generate();
This module makes UUID::Random use rand() from Math::Random::Secure instead of the default rand() that comes with Perl. It is useful for creating cryptographically secure UUID's. On the other hand, as a note, this makes generate() around 20 times slower on my PC.
rand()
After you use this module, use UUID::Random as usual.
use
Please visit the project's homepage at https://metacpan.org/release/UUID-Random-Patch-UseMRS.
Source repository is at https://github.com/perlancar/perl-UUID-Random-Patch-UseMRS.
Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-UUID-Random-Patch-UseMRS/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Math::Random::Secure, UUID::Random.
Other ways to generate cryptographically secure random (v4) UUIDs: Crypt::Misc, UUID::Random::Secure, UUID::Tiny::Patch::UseMRS and UUID::Tiny. Acme::CPANModules::UUID contains reviews and benchmarks of these.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2021, 2012 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install UUID::Random::Patch::UseMRS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UUID::Random::Patch::UseMRS
CPAN shell
perl -MCPAN -e shell install UUID::Random::Patch::UseMRS
For more information on module installation, please visit the detailed CPAN module installation guide.