Method Crypto.Random.add_entropy()
- Method
add_entropy
void
add_entropy(string(8bit)
data
)- Description
Inject additional entropy into the random generator. One possible use is to persist random data between executions of an application. The internal state is approximately 256 bits, so storing 32 bytes from random_string() at shutdown and injecting them through add_entropy() again at startup should carry over the entropy. Note that this doesn't affect the independent initialization that happens in the generator at startup, so the output sequence will be different than if the application had continued uninterrupted.
- Parameter
data
The random string.