GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Crypt::SysRandom(3) User Contributed Perl Documentation Crypt::SysRandom(3)

Crypt::SysRandom - Perl interface to system randomness

version 0.007

 use Crypt::SysRandom 'random_bytes';
 my $random = random_bytes(16);

This module uses whatever interface is available to procure cryptographically random data from the system.

This will fetch a string of $count random bytes containing cryptographically secure random date.

The current backends are tried in order:

  • Crypt::SysRandom::XS
  • "RtlGenRandom" using Win32::API
  • "/dev/urandom"

Leon Timmermans <fawaka@gmail.com>

This software is copyright (c) 2025 by Leon Timmermans.

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

2025-02-05 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.