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
RAND_LOAD_FILE(3) FreeBSD Library Functions Manual RAND_LOAD_FILE(3)

RAND_file_name, RAND_load_file, RAND_write_filePRNG seed file

#include <openssl/rand.h>

const char *
RAND_file_name(char *buf, size_t num);

int
RAND_load_file(const char *filename, long max_bytes);

int
RAND_write_file(const char *filename);

() returns a default path for the random seed file. buf points to a buffer of size num in which to store the filename. If num is too small for the path name, an error occurs.

() used to allow for the state of the random number generator to be controlled by external sources. It is kept for ABI compatibility but is no longer functional, and should not be used in new programs.

() writes a number of random bytes (currently 1024) to file filename.

RAND_load_file() returns max_bytes, or a bogus positive value if max_bytes is -1.

RAND_write_file() returns the number of bytes written, or a number less than or equal to 1 if an error occurs.

RAND_file_name() returns a pointer to buf on success or NULL on error.

RAND_load_file(), RAND_write_file(), and RAND_file_name() first appeared in SSLeay 0.5.1 and have been available since OpenBSD 2.4.

March 27, 2018 FreeBSD 14.3-RELEASE

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.