mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-21 05:29:13 +00:00
Fix seed per test.
This commit is contained in:
parent
0f1468adfd
commit
5d45aa4a6a
@ -155,14 +155,14 @@ void print_ram(FILE *file, const std::unordered_map<uint32_t, uint8_t> &data) {
|
|||||||
- (void)generate {
|
- (void)generate {
|
||||||
BusHandler handler;
|
BusHandler handler;
|
||||||
|
|
||||||
// Make tests repeatable, at least for any given instance of
|
|
||||||
// the runtime.
|
|
||||||
srand(65816);
|
|
||||||
|
|
||||||
NSString *const tempDir = NSTemporaryDirectory();
|
NSString *const tempDir = NSTemporaryDirectory();
|
||||||
NSLog(@"Outputting to %@", tempDir);
|
NSLog(@"Outputting to %@", tempDir);
|
||||||
|
|
||||||
for(int operation = 0; operation < 512; operation++) {
|
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 bool is_emulated = operation & 256;
|
||||||
const uint8_t opcode = operation & 255;
|
const uint8_t opcode = operation & 255;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user