about summary refs log tree commit diff stats
path: root/WitnessRandomizer/WitnessRandomizer.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-27 17:18:43 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-27 17:18:43 -0700
commit76bcf9faffde81bf34ed5138db7b181694bce635 (patch)
tree29e5b3dfaeb555105e5748f0ae68d902570407e2 /WitnessRandomizer/WitnessRandomizer.h
parent7e6307117421cacc6e4bb6ef5b2909a19879ae3f (diff)
downloadwitness-tutorializer-76bcf9faffde81bf34ed5138db7b181694bce635.tar.gz
witness-tutorializer-76bcf9faffde81bf34ed5138db7b181694bce635.tar.bz2
witness-tutorializer-76bcf9faffde81bf34ed5138db7b181694bce635.zip
Fix random order not working
Diffstat (limited to 'WitnessRandomizer/WitnessRandomizer.h')
-rw-r--r--WitnessRandomizer/WitnessRandomizer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/WitnessRandomizer/WitnessRandomizer.h b/WitnessRandomizer/WitnessRandomizer.h index 0c73b89..bb9db44 100644 --- a/WitnessRandomizer/WitnessRandomizer.h +++ b/WitnessRandomizer/WitnessRandomizer.h
@@ -1,7 +1,7 @@
1#pragma once 1#pragma once
2 2
3//#define GLOBALS 0x5B28C0 3#define GLOBALS 0x5B28C0
4#define GLOBALS 0x62A080 4// #define GLOBALS 0x62A080
5 5
6int SWAP_NONE = 0x0; 6int SWAP_NONE = 0x0;
7int SWAP_TARGETS = 0x1; 7int SWAP_TARGETS = 0x1;
@@ -12,8 +12,8 @@ class WitnessRandomizer {
12public: 12public:
13 WitnessRandomizer(); 13 WitnessRandomizer();
14 14
15 void Randomize(const std::vector<int>& panels, int flags); 15 void Randomize(std::vector<int>& panels, int flags);
16 void RandomizeRange(std::vector<int> panels, int flags, size_t startIndex, size_t endIndex); 16 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex);
17 void SwapPanels(int panel1, int panel2, int flags); 17 void SwapPanels(int panel1, int panel2, int flags);
18 void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order); 18 void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order);
19 19