#!/usr/bin/perl package Crypt::Random::Source::Weak::OpenSSLRand; use Squirrel; use OpenSSL::Rand qw(randbytes); use namespace::clean -except => [qw(meta)]; extends qw( Crypt::Random::Source::Weak Crypt::Random::Source::Base ); our $VERSION = "0.01"; sub available { 1 } sub rank { 200 } # not too shabby if you can get it installed sub get { my ( $self, $n ) = @_; randbytes($n); } __PACKAGE__ __END__ =pod =head1 NAME Crypt::Random::Source::Weak::OpenSSLRand - Use L as a L =head1 SYNOPSIS use Crypt::Random::Source::Weak::OpenSSLRand; my $source = Crypt::Random::Source::Weak::OpenSSLRand->new; my $ten_bytes = $source->get(10); =head1 DESCRIPTION This module is a L plugin that provides L support. =head1 METHODS Calls C. =head1 SEE ALSO L, L, L =head1 VERSION CONTROL This module is maintained using Darcs. You can get the latest version from L, and use C to commit changes. =head1 AUTHOR Yuval Kogman Enothingmuch@woobling.orgE =head1 COPYRIGHT Copyright (c) 2008 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut