Next: make Interface
Up: The RNG Random Number
Previous: A Note on Mixing
Thread Safety and the RNG Package
There are two static values in the RNG package that one must be aware of when
writing thread safe code. These values are both associated with the cryptographic
hash function. The first is the number of rounds which can be modified using RngSetKeyRounds().
The second is the encryption key which can be modified using RngSetKey().
Both of these functions should be called (if desired) at the startup of a parallel
program, before threads are created. If this philosophy is adhered to the RNG
package is thread safe.