fix(-Wuseless-cast) rm a cast in UrandomEntropySrc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-02-03 01:26:06 +01:00
parent 8cfb49e486
commit e2f540664b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -35,8 +35,7 @@ auto UrandomEntropySrc::event(accumulator::EventAdderImpl& adder) -> void {
fmt::print(stderr, "[i] ues: /dev/urandom stream open\n");
std::unique_lock<std::mutex> ul;
urandom.read(reinterpret_cast<char*>(&this->bytes.front()),
this_many_bytes);
urandom.read(&this->bytes.front(), this_many_bytes);
urandom.close();
}
else {