RandomGenerator.st
changeset 4482 6a22682659e2
parent 4250 c21944d9e5d7
child 4597 42570a22d794
equal deleted inserted replaced
4481:7785f5a3c411 4482:6a22682659e2
    40 "
    40 "
    41     This is a Random number generator, 
    41     This is a Random number generator, 
    42     which uses either a OS random number generator or /dev/urandom,
    42     which uses either a OS random number generator or /dev/urandom,
    43     or an ST/X internal random number generator.
    43     or an ST/X internal random number generator.
    44 
    44 
    45     Warning: this generator should not be used for cryptographic work 
    45     Warning: 
       
    46         this generator should not be used for cryptographic work 
    46     UNLESS: 
    47     UNLESS: 
    47         1) you are running on linux, solaris or osx,
    48         1) you are running on linux, solaris or osx,
    48         2) you have a working /dev/urandom.
    49         2) you have a working /dev/urandom.
    49         3) you can trust your /dev/urandom (I don't really know if any/all of them are good)
    50         3) you can trust your /dev/urandom (I don't really know if any/all of them are good)
    50 
    51 
       
    52     It is a facade one one of the other random generators,
       
    53     and will choose (in decreasing priority) the first available generator from the following:
       
    54 
       
    55         - OS random system call 
       
    56         - /dev/urandom
       
    57         - rc4-based random (if present)
       
    58         - regular (untrusted) random as fallback
       
    59         
    51     [author:]
    60     [author:]
    52         Stefan Vogel
    61         Stefan Vogel
    53 
    62 
    54     [see also:]
    63     [see also:]
    55         http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf
    64         http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf