changed RNG_REAL to RNG_TRUE
This commit is contained in:
@@ -54,7 +54,7 @@ plugin_t *plugin_create()
|
||||
|
||||
lib->crypto->add_rng(lib->crypto, RNG_STRONG,
|
||||
(rng_constructor_t)random_rng_create);
|
||||
lib->crypto->add_rng(lib->crypto, RNG_REAL,
|
||||
lib->crypto->add_rng(lib->crypto, RNG_TRUE,
|
||||
(rng_constructor_t)random_rng_create);
|
||||
|
||||
return &this->public.plugin;
|
||||
|
||||
@@ -114,7 +114,7 @@ random_rng_t *random_rng_create(rng_quality_t quality)
|
||||
this->public.rng.allocate_bytes = (void (*) (rng_t *, size_t, chunk_t*)) allocate_bytes;
|
||||
this->public.rng.destroy = (void (*) (rng_t *))destroy;
|
||||
|
||||
if (quality == RNG_REAL)
|
||||
if (quality == RNG_TRUE)
|
||||
{
|
||||
this->file = DEV_RANDOM;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user