Skip to content

Commit

Permalink
Fix issue with random in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Dec 7, 2024
1 parent e67c702 commit 5602c88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/juce_core/juce_BigInteger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TEST (BigIntegerTests, BasicTests)
return b;
};

Random r = getRandom();
Random r = Random::getSystemRandom();

EXPECT_TRUE (BigInteger().isZero());
EXPECT_TRUE (BigInteger (1).isOne());
Expand Down Expand Up @@ -87,7 +87,7 @@ TEST (BigIntegerTests, BasicTests)

TEST (BigIntegerTests, BitSetting)
{
Random r = getRandom();
Random r = Random::getSystemRandom();
static uint8 test[2048];

for (int j = 100000; --j >= 0;)
Expand Down
2 changes: 1 addition & 1 deletion tests/juce_core/juce_Random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ using namespace juce;

TEST (RandomTests, RandomNumbers)
{
Random r = getRandom();
Random r = Random::getSystemRandom();

for (int i = 2000; --i >= 0;)
{
Expand Down

0 comments on commit 5602c88

Please sign in to comment.