1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Fix seed per test.

This commit is contained in:
Thomas Harte 2023-07-28 13:58:01 -04:00
parent 0f1468adfd
commit 5d45aa4a6a

View File

@ -155,14 +155,14 @@ void print_ram(FILE *file, const std::unordered_map<uint32_t, uint8_t> &data) {
- (void)generate {
BusHandler handler;
// Make tests repeatable, at least for any given instance of
// the runtime.
srand(65816);
NSString *const tempDir = NSTemporaryDirectory();
NSLog(@"Outputting to %@", tempDir);
for(int operation = 0; operation < 512; operation++) {
// Make tests repeatable, at least for any given instance of
// the runtime.
srand(65816 + operation);
const bool is_emulated = operation & 256;
const uint8_t opcode = operation & 255;