Index: unittest/IceELFSectionTest.cpp |
diff --git a/unittest/IceELFSectionTest.cpp b/unittest/IceELFSectionTest.cpp |
index 8dbcc65137906f29a77b254172e16bbc1a037839..57e43c14b312392374c749aab9430711be4fbfd1 100644 |
--- a/unittest/IceELFSectionTest.cpp |
+++ b/unittest/IceELFSectionTest.cpp |
@@ -90,8 +90,11 @@ TEST(IceELFSectionTest, StringTableBuilderPermSeveral) { |
Strings.push_back(".shstrtab"); |
Strings.push_back("_start"); |
const SizeT NumTests = 128; |
+ const uint64_t RandomSeed = 12345; // arbitrary value for now |
+ RandomNumberGenerator R(RandomSeed); |
+ RandomNumberGeneratorWrapper RNG(R); |
for (SizeT i = 0; i < NumTests; ++i) { |
- std::random_shuffle(Strings.begin(), Strings.end()); |
+ RandomShuffle(Strings.begin(), Strings.end(), RNG); |
ELFStringTableSection Strtab(".strtab", SHT_STRTAB, 0, 1, 0); |
for (auto &S : Strings) { |
Strtab.add(S); |