Skip to content

Commit 7a2db82

Browse files
committed
Fix itoa-benchmark
1 parent a43bc40 commit 7a2db82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/itoa-benchmark/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <cstring>
55
#include <exception>
66
#include <limits>
7+
#include <random>
78
#include <string>
89
#include <stdint.h>
910
#include <stdlib.h>
@@ -184,7 +185,8 @@ class RandomData {
184185
}
185186
start = end;
186187
}
187-
std::random_shuffle(mData, mData + kCount);
188+
std::mt19937 gen;
189+
std::shuffle(mData, mData + kCount, gen);
188190
}
189191

190192
~RandomData() {

src/itoa-benchmark/resultfilename.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#pragma once
22

3-
#include "machine.h"
4-
53
#ifndef MACHINE
64
#define MACHINE "unknown"
75
#endif

0 commit comments

Comments
 (0)