⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rand_load_file.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMERAND_load_file, RAND_write_file, RAND_file_name - PRNG seed file=head1 SYNOPSIS #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);=head1 DESCRIPTIONRAND_file_name() generates a default path for the random seedfile. B<buf> points to a buffer of size B<num> in which to store thefilename. The seed file is $RANDFILE if that environment variable isset, $HOME/.rnd otherwise. If $HOME is not set either, or B<num> istoo small for the path name, an error occurs.RAND_load_file() reads a number of bytes from file B<filename> andadds them to the PRNG. If B<max_bytes> is non-negative,up to to B<max_bytes> are read; starting with OpenSSL 0.9.5,if B<max_bytes> is -1, the complete file is read.RAND_write_file() writes a number of random bytes (currently 1024) tofile B<filename> which can be used to initialize the PRNG by callingRAND_load_file() in a later session.=head1 RETURN VALUESRAND_load_file() returns the number of bytes read.RAND_write_file() returns the number of bytes written, and -1 if thebytes written were generated without appropriate seed.RAND_file_name() returns a pointer to B<buf> on success, and NULL onerror.=head1 SEE ALSOL<rand(3)|rand(3)>, L<RAND_add(3)|RAND_add(3)>, L<RAND_cleanup(3)|RAND_cleanup(3)>=head1 HISTORYRAND_load_file(), RAND_write_file() and RAND_file_name() are available inall versions of SSLeay and OpenSSL.=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -