blob: 7ed37c8b5e91c5944d3010edd7dec22ff5928b08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "tensorflow/core/lib/random/random.h"
#include <set>
#include "tensorflow/core/platform/port.h"
#include <gtest/gtest.h>
namespace tensorflow {
namespace random {
namespace {
TEST(New64Test, SanityCheck) {
std::set<uint64> values;
for (int i = 0; i < 1000000; i++) {
uint64 x = New64();
EXPECT_TRUE(values.insert(x).second) << "duplicate " << x;
}
}
} // namespace
} // namespace random
} // namespace tensorflow
|