1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Ensures randomised memory contents at startup.

This commit is contained in:
Thomas Harte
2019-06-13 13:35:16 -04:00
parent 535747e3f2
commit 5630141ad7
5 changed files with 21 additions and 2 deletions
+4
View File
@@ -23,6 +23,10 @@ void Memory::Fuzz(uint8_t *buffer, std::size_t size) {
}
}
void Memory::Fuzz(uint16_t *buffer, std::size_t size) {
Fuzz(reinterpret_cast<uint8_t *>(buffer), size * sizeof(uint16_t));
}
void Memory::Fuzz(std::vector<uint8_t> &buffer) {
Fuzz(buffer.data(), buffer.size());
}