pike.git / lib / modules / Crypto / randomness.pmod

version» Context lines:

pike.git/lib/modules/Crypto/randomness.pmod:7:    * They differ in behaviour when they run low on entropy, /dev/random    * will block if it can't provide enough random bits, while /dev/urandom    * will degenerate into a reasonably strong pseudo random generator */      #define RANDOM_DEVICE "/dev/random"   #define PRANDOM_DEVICE "/dev/urandom"      /* Collect somewhat random data from the environment. Unfortunately,    * this is quite system dependent */   #define PATH "/usr/sbin:/usr/etc:/usr/bin/:/sbin/:/etc:/bin" - #define SYSTEM_COMMANDS "rup & ping -s 255.255.255.255 256 30 &" \ -  "uptime & ps -fel & vmstat -s & iostat -cdDItx &" + #define SYSTEM_COMMANDS "last & netstat -anv & netstat -mv & netstat -sv & " \ +  "ping -s 255.255.255.255 256 10 & " \ +  "ping -c 10 -s 256 255.255.255.255 & " \ +  "uptime & ps -fel & ps aux & " \ +  "vmstat -s & vmstat -M & " \ +  "iostat & iostat -cdDItx &"      #define PRIVATE      PRIVATE object global_rc4;      PRIVATE string some_entropy()   {    object parent_pipe, child_pipe;       parent_pipe = Stdio.File();