- code cleanups
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file hasher_sha1.h
|
||||
*
|
||||
* @brief Interface for the hasher_sha1_t
|
||||
* @brief Interface of hasher_sha1_t
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ static status_t init_prime (private_gmp_helper_t *this, mpz_t *prime, int bytes)
|
||||
}
|
||||
|
||||
/* TODO change to true random device ? */
|
||||
// status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes);
|
||||
//status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes);
|
||||
status = randomizer->allocate_pseudo_random_bytes(randomizer,bytes, &random_bytes);
|
||||
|
||||
/* make sure most significant bit is set */
|
||||
@@ -171,7 +171,7 @@ static status_t init_prime_fast (private_gmp_helper_t *this, mpz_t *prime, int b
|
||||
}
|
||||
|
||||
/* TODO change to true random device ? */
|
||||
// status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes);
|
||||
//status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes);
|
||||
status = randomizer->allocate_pseudo_random_bytes(randomizer,bytes, &random_bytes);
|
||||
|
||||
/* make sure most significant bit is set */
|
||||
|
||||
Reference in New Issue
Block a user