prng.pod
来自「支持SSL v2/v3, TLS, PKCS #5, PKCS #7, PKCS」· POD 代码 · 共 42 行
POD
42 行
=head1 NAME prng - pseudo-random number generator=head1 SYNOPSIS prng [count]=head1 DESCRIPTIONB<Prng> generates 32-bit pseudo-random integers using theBlum-Blum-Shub (BBS) quadratic residue generator. It is seeded usingthe standard C library's rand() function, which itself seeded from thesystem clock and the process ID number. Thus, the values generatedare not particularly useful for cryptographic applications, but theyare in general much better than the typical output of the usualmultiplicative congruency generator used by most runtime libraries.You may optionally specify how many random values should be generatedby giving a I<count> argument on the command line. If you do notspecify a count, only one random value will be generated. The resultsare output to the standard output in decimal notation, one value perline.=head1 RESTRICTIONSAs stated above, B<prng> uses the C library's rand() function to seedthe generator, so it is not terribly suitable for cryptographicapplications. Also note that each time you run the program, a newseed is generated, so it is better to run it once with a I<count>parameter than it is to run it multiple times to generate severalvalues.=head1 AUTHOR Michael J. Fromberger <sting@linguist.dartmouth.edu> Copyright (C) 1998 Michael J. Fromberger, All Rights Reserved Thayer School of Engineering, Dartmouth College, Hanover, NH USA $Date: 2000/07/14 00:44:36 $
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?