Name
SPVM::Net::SSLeay::RAND - RAND Name Space in OpenSSL
Description
Net::SSLeay::RAND class in SPVM represents RAND
name space in OpenSSL.
Usage
use Net::SSLeay::RAND;
Class Methods
seed
static method seed : void ($buf : string, $num : int);
Calls native RAND_seed function.
Exceptions:
The buffer $buf must be defined. Otherwise an exception is thrown.
poll
static method poll : int ();
Calls native RAND_poll function.
load_file
static method load_file : int ($filename : string, $max_bytes : long);
Calls native RAND_load_file function given $filename and $max_bytes, and returns its return value.
Exceptions:
The filename $filename must be defined.
If RAND_load_file failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License