UrandomEntropySrc: add a static_cast to calm TIDY
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f79395261f
commit
b682b0251d
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#include "urandom_entropy_src.h"
|
#include "urandom_entropy_src.h"
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace fortuna {
|
namespace fortuna {
|
||||||
namespace accumulator {
|
namespace accumulator {
|
||||||
|
|
||||||
|
@ -23,7 +25,7 @@ auto UrandomEntropySrc::event(accumulator::EventAdderImpl adder) -> void {
|
||||||
if (urandom) {
|
if (urandom) {
|
||||||
urandom.read(
|
urandom.read(
|
||||||
reinterpret_cast<char*>(&UrandomEntropySrc::bytes),
|
reinterpret_cast<char*>(&UrandomEntropySrc::bytes),
|
||||||
reinterpret_cast<uint64_t>(UrandomEntropySrc::bytes.size()));
|
static_cast<int64_t>(reinterpret_cast<uint64_t>(UrandomEntropySrc::bytes.size())));
|
||||||
urandom.close();
|
urandom.close();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Reference in New Issue