class method
OpenSSL::Random.load_random_file
(::String filename) -> true
load_random_file(filename) → true
ext/openssl/ossl_rand.c
View on GitHub ↗
static VALUE
ossl_rand_load_file(VALUE self, VALUE filename)
{
if(!RAND_load_file(StringValueCStr(filename), -1)) {
ossl_raise(eRandomError, NULL);
}
return Qtrue;
}
Reads bytes from filename and adds them to the PRNG.