Security Advisories (1)
CVE-2018-25107

In versions prior to 0.13, rand could be used as a result of calling get_weak, or get, if no random device was available. This implies that not explicitly asking for get_strong on a non POSIX operating system (e.g. Win32 without the Win32 backend) could have resulted in non cryptographically random data.

NAME

Crypt::Random::Source::Base::File - File (or device) random data sources

SYNOPSIS

use Moose;
extends qw(Crypt::Random::Source::Base::File);

has '+path' => (
    default => "/foo/bar",
);

DESCRIPTION

This is a base class for file (or file like) random data sources.

ATTRIBUTES

path

A required attribute, the path to the file to open.

METHODS

open_handle

Uses IO::File to open path for reading.

AUTHOR

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Yuval Kogman.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.