Skip to content

Commit

Permalink
Increase sample size of random number generation tests
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/corefx@ddb08d9
  • Loading branch information
vcsjones authored and bartonjs committed Jun 20, 2019
1 parent 7504b72 commit 4d6742a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ public static void GetInt32_CoinFlipOverByteBoundary()
[Fact]
public static void GetInt32_NegativeBounds1000d20()
{
int numberToGenerate = 1000;
Span<int> generated = stackalloc int[numberToGenerate];
int numberToGenerate = 10_000;
Span<int> generated = new int[numberToGenerate];

for (int i = 0; i < numberToGenerate; i++)
{
Expand All @@ -222,8 +222,8 @@ public static void GetInt32_NegativeBounds1000d20()
[Fact]
public static void GetInt32_1000d6()
{
int numberToGenerate = 1000;
Span<int> generated = stackalloc int[numberToGenerate];
int numberToGenerate = 10_000;
Span<int> generated = new int[numberToGenerate];

for (int i = 0; i < numberToGenerate; i++)
{
Expand All @@ -243,8 +243,8 @@ public static void GetInt32_1000d6()
[InlineData(16_777_214, 16_777_217)]
public static void GetInt32_MaskRangeCorrect(int fromInclusive, int toExclusive)
{
int numberToGenerate = 1000;
Span<int> generated = stackalloc int[numberToGenerate];
int numberToGenerate = 10_000;
Span<int> generated = new int[numberToGenerate];

for (int i = 0; i < numberToGenerate; i++)
{
Expand Down

0 comments on commit 4d6742a

Please sign in to comment.