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 [usage:] RandomRDRand new nextInteger Class protocol:instance creation queries
Instance protocol:initialization
|
||||
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 12:02:45 GMT |