NAME
Crypt::Random::Source::Base - Abstract base class for Crypt::Random::Source classes.
SYNOPSIS
use Squirrel;
extends qw(Crypt::Random::Source::Base);
DESCRIPTION
This is an abstract base class.
In the future it will be a role.
METHODS
- get $n, %args
-
Gets
$n
random bytes and returns them as a string.This method may produce fatal errors if the source was unable to provide enough data.
- read $buf, $n, [ $off ]
-
This method is cannibalized from IO::Scalar. It provides an IO::Handle work-alike.
Note that subclasses override this to operate on a real handle directly if available.