Net::OAuth2::Scheme::Random - random number generator interface
version 0.020001_099
# use something (defaults to Math::Random::MT::Auto) use Net::OAuth2::Scheme::Random; # use Mersenne Twister use Net::OAuth2::Scheme::Random 'Math::Random::MT::Auto'; # use ISAAC; use Net::OAuth2::Scheme::Random 'Math::Random::ISAAC'; $rng = Net::OAuth2::Scheme::Random->new $rng->bytes(24) # return 24 random octets
This provides an interface for using arbitrary random number generator classes with Net::OAuth2::Scheme.
The generator is instantiated exactly once in each thread/interpreter using the same randomly derived seed, the process ID, the interpreter ID and the thread/interpreter-start time. Repeated calls to new() in the same thread/interpreter will simply return the same generator.
$class->
$rng_class
Return the generator derived from the default class / $rng_class as instantiated for this thread/interpreter.
Return a random string of $n octets.
Roger Crew <crew@cs.stanford.edu>
This software is copyright (c) 2012 by Roger Crew.
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 Net::OAuth2::Scheme, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OAuth2::Scheme
CPAN shell
perl -MCPAN -e shell install Net::OAuth2::Scheme
For more information on module installation, please visit the detailed CPAN module installation guide.