📄 prng.pod
字号:
=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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -