Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
5d4715ae
Commit
5d4715ae
authored
Nov 15, 2022
by
Tom Hughes
Committed by
Copybara-Service
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos
PiperOrigin-RevId: 488799458 Change-Id: I1aaaa60c5be3260055a6f5773f78cb4043a60ac8
parent
7c022b94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
absl/random/uniform_int_distribution_test.cc
+3
-3
No files found.
absl/random/uniform_int_distribution_test.cc
View file @
5d4715ae
...
...
@@ -136,7 +136,7 @@ TYPED_TEST(UniformIntDistributionTest, TestMoments) {
typename
absl
::
uniform_int_distribution
<
TypeParam
>::
param_type
;
// We use a fixed bit generator for distribution accuracy tests. This allows
// these tests to be deterministic, while still testing the quali
f
y of the
// these tests to be deterministic, while still testing the quali
t
y of the
// implementation.
absl
::
random_internal
::
pcg64_2018_engine
rng
{
0x2B7E151628AED2A6
};
...
...
@@ -172,7 +172,7 @@ TYPED_TEST(UniformIntDistributionTest, ChiSquaredTest50) {
using
absl
::
random_internal
::
kChiSquared
;
constexpr
size_t
kTrials
=
1000
;
constexpr
int
kBuckets
=
50
;
// inclusive, so actally +1
constexpr
int
kBuckets
=
50
;
// inclusive, so act
u
ally +1
constexpr
double
kExpected
=
static_cast
<
double
>
(
kTrials
)
/
static_cast
<
double
>
(
kBuckets
);
...
...
@@ -184,7 +184,7 @@ TYPED_TEST(UniformIntDistributionTest, ChiSquaredTest50) {
const
TypeParam
max
=
min
+
kBuckets
;
// We use a fixed bit generator for distribution accuracy tests. This allows
// these tests to be deterministic, while still testing the quali
f
y of the
// these tests to be deterministic, while still testing the quali
t
y of the
// implementation.
absl
::
random_internal
::
pcg64_2018_engine
rng
{
0x2B7E151628AED2A6
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment