Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Dec 30, 2024
1 parent 14b0b5b commit 9fb4ff7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
20 changes: 11 additions & 9 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NAME

VERSION

This document describes Crypt::URandom version 0.40
This document describes Crypt::URandom version 0.41_02

SYNOPSIS

Expand All @@ -31,18 +31,20 @@ SUBROUTINES/METHODS
urandom

This function accepts an integer and returns a string of the same
size filled with random data. The first call will initialize the
native cryptographic libraries (if necessary) and load all the
required Perl libraries. This call is a buffered read on non Win32
platforms that do not support getrandom(2) or equivalent.
size filled with random data. It will throw an exception if the
requested amount of random data is not returned. The first call will
initialize the native cryptographic libraries (if necessary) and load
all the required Perl libraries. This call is a buffered read on non
Win32 platforms that do not support getrandom(2) or equivalent.

urandom_ub

This function accepts an integer and returns a string of the same
size filled with random data. The first call will initialize the
native cryptographic libraries (if necessary) and load all the
required Perl libraries. This call is a unbuffered sysread on non
Win32 platforms that do not support getrandom(2) or equivalent.
size filled with random data. It will throw an exception if the
requested amount of random data is not returned. The first call will
initialize the native cryptographic libraries (if necessary) and load
all the required Perl libraries. This call is a unbuffered sysread on
non Win32 platforms that do not support getrandom(2) or equivalent.

DIAGNOSTICS

Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Crypt::URandom - Provide non blocking randomness

# VERSION

This document describes Crypt::URandom version 0.40
This document describes Crypt::URandom version 0.41\_02

# SYNOPSIS

Expand All @@ -23,26 +23,28 @@ OR
This Module is intended to provide
an interface to the strongest available source of non-blocking
randomness on the current platform. Platforms currently supported are
anything supporting getrandom(2), /dev/urandom and versions of Windows greater
anything supporting [getrandom(2)](http://man.he.net/man2/getrandom), /dev/urandom and versions of Windows greater
than or equal to Windows 2000.

# SUBROUTINES/METHODS

- `urandom`

This function accepts an integer and returns a string of the same size
filled with random data. The first call will initialize the native
filled with random data. It will throw an exception if the requested amount of
random data is not returned. The first call will initialize the native
cryptographic libraries (if necessary) and load all the required Perl libraries.
This call is a buffered read on non Win32 platforms that do not support getrandom(2)
This call is a buffered read on non Win32 platforms that do not support [getrandom(2)](http://man.he.net/man2/getrandom)
or equivalent.

- `urandom_ub`

This function accepts an integer and returns a string of the same size
filled with random data. The first call will initialize the native
filled with random data. It will throw an exception if the requested amount of
random data is not returned. The first call will initialize the native
cryptographic libraries (if necessary) and load all the required Perl libraries.
This call is a unbuffered sysread on non Win32 platforms that do not support
getrandom(2) or equivalent.
[getrandom(2)](http://man.he.net/man2/getrandom) or equivalent.

# DIAGNOSTICS

Expand Down
16 changes: 9 additions & 7 deletions lib/Crypt/URandom.pm
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ OR
This Module is intended to provide
an interface to the strongest available source of non-blocking
randomness on the current platform. Platforms currently supported are
anything supporting getrandom(2), /dev/urandom and versions of Windows greater
anything supporting L<getrandom(2)>, /dev/urandom and versions of Windows greater
than or equal to Windows 2000.
=head1 SUBROUTINES/METHODS
Expand All @@ -258,23 +258,25 @@ than or equal to Windows 2000.
=item C<urandom>
=for stopwords cryptographic
=for stopwords cryptographic Win32 initialize
This function accepts an integer and returns a string of the same size
filled with random data. The first call will initialize the native
filled with random data. It will throw an exception if the requested amount of
random data is not returned. The first call will initialize the native
cryptographic libraries (if necessary) and load all the required Perl libraries.
This call is a buffered read on non Win32 platforms that do not support getrandom(2)
This call is a buffered read on non Win32 platforms that do not support L<getrandom(2)>
or equivalent.
=item C<urandom_ub>
=for stopwords cryptographic
=for stopwords cryptographic Win32 initialize unbuffered sysread
This function accepts an integer and returns a string of the same size
filled with random data. The first call will initialize the native
filled with random data. It will throw an exception if the requested amount of
random data is not returned. The first call will initialize the native
cryptographic libraries (if necessary) and load all the required Perl libraries.
This call is a unbuffered sysread on non Win32 platforms that do not support
getrandom(2) or equivalent.
L<getrandom(2)> or equivalent.
=back
Expand Down

0 comments on commit 9fb4ff7

Please sign in to comment.