![]() |
Smalltalk/X WebserverDocumentation of class 'RandomRDRand': |
||
|
Class: RandomRDRandInheritance:Object | +--RandomRDRand
Description:This generator uses the rdgen random generator which is built into modern intel chips. Before using, you should check via the isSupported query. Warning: there have been discussions about the security of the intel rdgen instruction and whether there are NSA backdoors built into it. Linus Torwalds refuses to use it for /dev/urandom in the linux kernel, for that very reason. Be sure you know what you are doing, if you use this generator for sensitive cryptographic stuff. We recommend using one of the libcrypt-based generators and use this only to get additional entropy for the seed. Warning2: the initial release of the AMD Ryzen3000 (without BIOS update) has a bug in returning the same (all 1s) random number every time. The code here checks for that an raises an error in the constructor if that bug is detected. Be sure to catch this exception in your code and fall back to another random generator if raised. NO WARRANTY RandomRDGen new nextInteger Related information: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 RandomKISS - another random generator [xept] - a library containing more stuff based on hashes and cyphers Class protocol:instance creation queries
Instance protocol:initialization
|
||
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Sep 2023 10:28:12 GMT
|