#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Tue, 25 Jul 2017 18:07:30 +0200
changeset 4482 6a22682659e2
parent 4481 7785f5a3c411
child 4485 735edd20512a
#DOCUMENTATION by cg class: RandomGenerator class comment/format in: #documentation
RandomGenerator.st
--- a/RandomGenerator.st	Tue Jul 25 18:03:50 2017 +0200
+++ b/RandomGenerator.st	Tue Jul 25 18:07:30 2017 +0200
@@ -42,12 +42,21 @@
     which uses either a OS random number generator or /dev/urandom,
     or an ST/X internal random number generator.
 
-    Warning: this generator should not be used for cryptographic work 
+    Warning: 
+        this generator should not be used for cryptographic work 
     UNLESS: 
         1) you are running on linux, solaris or osx,
         2) you have a working /dev/urandom.
         3) you can trust your /dev/urandom (I don't really know if any/all of them are good)
 
+    It is a facade one one of the other random generators,
+    and will choose (in decreasing priority) the first available generator from the following:
+
+        - OS random system call 
+        - /dev/urandom
+        - rc4-based random (if present)
+        - regular (untrusted) random as fallback
+        
     [author:]
         Stefan Vogel