about summary refs log tree commit diff stats
path: root/Source/Randomizer.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-30 20:00:32 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-30 20:00:32 -0700
commite66a408e38849107a3d35a317ff6f2b23dcaeead (patch)
tree2e2abb9c80997c0565fddce4e7e271d901839b26 /Source/Randomizer.cpp
parent2ec4950107245df8f01860a3289b7731753933cd (diff)
downloadwitness-tutorializer-e66a408e38849107a3d35a317ff6f2b23dcaeead.tar.gz
witness-tutorializer-e66a408e38849107a3d35a317ff6f2b23dcaeead.tar.bz2
witness-tutorializer-e66a408e38849107a3d35a317ff6f2b23dcaeead.zip
RM static cast, lower warning level, add homebrew RNG
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r--Source/Randomizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index c3c084c..83f5571 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp
@@ -23,7 +23,7 @@
23template <class T> 23template <class T>
24int find(const std::vector<T> &data, T search, size_t startIndex = 0) { 24int find(const std::vector<T> &data, T search, size_t startIndex = 0) {
25 for (size_t i=startIndex ; i<data.size(); i++) { 25 for (size_t i=startIndex ; i<data.size(); i++) {
26 if (data[i] == search) return static_cast<int>(i); 26 if (data[i] == search) return i;
27 } 27 }
28 std::cout << "Couldn't find " << search << " in data!" << std::endl; 28 std::cout << "Couldn't find " << search << " in data!" << std::endl;
29 exit(-1); 29 exit(-1);