aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rng/rng.cpp')
-rw-r--r--src/lib/rng/rng.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/rng/rng.cpp b/src/lib/rng/rng.cpp
index a2dd3d3a4..4551ffe83 100644
--- a/src/lib/rng/rng.cpp
+++ b/src/lib/rng/rng.cpp
@@ -14,21 +14,21 @@
namespace Botan {
-void RandomNumberGenerator::randomize_with_ts_input(byte output[], size_t output_len)
+void RandomNumberGenerator::randomize_with_ts_input(uint8_t output[], size_t output_len)
{
/*
Form additional input which is provided to the PRNG implementation
to paramaterize the KDF output.
*/
- byte additional_input[16] = { 0 };
+ uint8_t additional_input[16] = { 0 };
store_le(OS::get_system_timestamp_ns(), additional_input);
store_le(OS::get_processor_timestamp(), additional_input + 8);
randomize_with_input(output, output_len, additional_input, sizeof(additional_input));
}
-void RandomNumberGenerator::randomize_with_input(byte output[], size_t output_len,
- const byte input[], size_t input_len)
+void RandomNumberGenerator::randomize_with_input(uint8_t output[], size_t output_len,
+ const uint8_t input[], size_t input_len)
{
this->add_entropy(input, input_len);
this->randomize(output, output_len);
@@ -43,7 +43,7 @@ size_t RandomNumberGenerator::reseed(Entropy_Sources& srcs,
void RandomNumberGenerator::reseed_from_rng(RandomNumberGenerator& rng, size_t poll_bits)
{
- secure_vector<byte> buf(poll_bits / 8);
+ secure_vector<uint8_t> buf(poll_bits / 8);
rng.randomize(buf.data(), buf.size());
this->add_entropy(buf.data(), buf.size());
}