RosettaCodeData/Task/Random-number-generator--device-/Perl/random-number-generator--device--1.pl
2015-02-20 00:35:01 -05:00

3 lines
237 B
Perl

use Crypt::Random::Seed;
my $source = Crypt::Random::Seed->new( NonBlocking => 1 ); # Allow non-blocking sources like /dev/urandom
print "$_\n" for $source->random_values(10); # A method returning an array of 32-bit values