refactor: Drop unused UCharCast

This is no longer needed after commit
6aa0e70ccb
This commit is contained in:
MarcoFalke
2024-12-18 11:02:21 +01:00
parent 35bf426e02
commit fad4032b21
4 changed files with 9 additions and 9 deletions

View File

@@ -268,12 +268,12 @@ public:
{
while (span.size() >= 8) {
uint64_t gen = Impl().rand64();
WriteLE64(UCharCast(span.data()), gen);
WriteLE64(span.data(), gen);
span = span.subspan(8);
}
if (span.size() >= 4) {
uint32_t gen = Impl().rand32();
WriteLE32(UCharCast(span.data()), gen);
WriteLE32(span.data(), gen);
span = span.subspan(4);
}
while (span.size()) {
@@ -397,7 +397,7 @@ public:
if (requires_seed) RandomSeed();
std::array<std::byte, 8> buf;
rng.Keystream(buf);
return ReadLE64(UCharCast(buf.data()));
return ReadLE64(buf.data());
}
/** Fill a byte Span with random bytes. This overrides the RandomMixin version. */