We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a43bc40 commit 7a2db82Copy full SHA for 7a2db82
src/itoa-benchmark/main.cpp
@@ -4,6 +4,7 @@
4
#include <cstring>
5
#include <exception>
6
#include <limits>
7
+#include <random>
8
#include <string>
9
#include <stdint.h>
10
#include <stdlib.h>
@@ -184,7 +185,8 @@ class RandomData {
184
185
}
186
start = end;
187
- std::random_shuffle(mData, mData + kCount);
188
+ std::mt19937 gen;
189
+ std::shuffle(mData, mData + kCount, gen);
190
191
192
~RandomData() {
src/itoa-benchmark/resultfilename.h
@@ -1,7 +1,5 @@
1
#pragma once
2
3
-#include "machine.h"
-
#ifndef MACHINE
#define MACHINE "unknown"
#endif
0 commit comments