NAMEsrand - seed the random number generator
SYNOPSISsrand EXPR
DESCRIPTIONSets the random number seed for the rand operator. If EXPR is omitted, does srand(time) . Many folks use an explicit srand(time ^ $$) instead. Of course, you'd need something much more random than that for cryptographic purposes, since it's easy to guess the current time. Checksumming the compressed output of rapidly changing operating system status programs is the usual method. Examples are posted regularly to the comp.security.unix newsgroup. |
电话: 0086-0577-62319278, 62319276 传真: 0086-0577-62319276
|