fix(-Wuseless-cast) rm a cast in UrandomEntropySrc
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
8cfb49e486
commit
e2f540664b
|
@ -35,8 +35,7 @@ auto UrandomEntropySrc::event(accumulator::EventAdderImpl& adder) -> void {
|
||||||
fmt::print(stderr, "[i] ues: /dev/urandom stream open\n");
|
fmt::print(stderr, "[i] ues: /dev/urandom stream open\n");
|
||||||
|
|
||||||
std::unique_lock<std::mutex> ul;
|
std::unique_lock<std::mutex> ul;
|
||||||
urandom.read(reinterpret_cast<char*>(&this->bytes.front()),
|
urandom.read(&this->bytes.front(), this_many_bytes);
|
||||||
this_many_bytes);
|
|
||||||
urandom.close();
|
urandom.close();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Reference in New Issue