Skip to content

Use Crypt::URandom to get the random seed#4

Open
robrwo wants to merge 1 commit intohoytech:masterfrom
robrwo:rrwo/use-Crypt-URandom
Open

Use Crypt::URandom to get the random seed#4
robrwo wants to merge 1 commit intohoytech:masterfrom
robrwo:rrwo/use-Crypt-URandom

Conversation

@robrwo
Copy link
Copy Markdown

@robrwo robrwo commented Dec 17, 2024

This is a platform-independent method for querying /dev/urandom or equivalents. It also uses the Win32::API on Windows, and it should work on Perl v5.6.

This is a platform-independent method for querying /dev/urandom or
equivalents.  It also uses the Win32::API on Windows, and it should
work on Perl v5.6.
@robrwo robrwo force-pushed the rrwo/use-Crypt-URandom branch from ea591e0 to 52ebc0f Compare December 27, 2024 23:43
@hoytech
Copy link
Copy Markdown
Owner

hoytech commented Apr 24, 2026

Thanks for this! I'd ideally like to keep this library without dependencies (at least on *nix). Is there a platform you're targeting that is not supported?

@robrwo
Copy link
Copy Markdown
Author

robrwo commented Apr 26, 2026

It's more to ensure consistency, in case this or Crypt::SysRandom evolve to support newer platforms.

Also, they both not support system calls, which are faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants