|
Smalltalk/X WebserverDocumentation of class 'RandomKISS': |
|
|
Class: RandomKISSInheritance:Object | +--RandomKISS
Description:
Warning: this generator should not be used for cryptographic work.
NO WARRANTY
KISS combines a linear congruence, XorShift and Lag with carry generator.
The idea is from George Marsaglia.
RandomKISS new nextInteger
(RandomKISS new:5489) nextInteger
If heavily used, it may be useful to embed the original C code as inline C code for a big speedup)
Please read:
Wikipedia article on KISS http://de.wikipedia.org/wiki/KISS_(Zufallszahlengenerator)
http://de.wikipedia.org/wiki/Liste_von_Zufallszahlengeneratoren
http://eprint.iacr.org/2011/007.pdf (KISS is not cryptographically secure)
Related information:
http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf
RandomGenerator
-
the
default;
uses
the
machine's
/dev/random
if
available
Random
-
fast,
but
generates
less
quality
random
numbers
RandomTT800
-
another
random
generator
RandomParkMiller
-
another
random
generator
RandomMT19937
-
another
random
generator
Class protocol:instance creationInstance protocol:initialization
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:10:40 GMT
|