MCPcopy Create free account
hub / github.com/apache/impala / SeedRandom

Function SeedRandom

be/src/kudu/util/test_util.cc:246–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246int SeedRandom() {
247 int seed;
248 // Initialize random seed
249 if (FLAGS_test_random_seed == 0) {
250 // Not specified by user
251 seed = static_cast<int>(GetCurrentTimeMicros());
252 } else {
253 seed = FLAGS_test_random_seed;
254 }
255 LOG(INFO) << "Using random seed: " << seed;
256 srand(seed);
257 return seed;
258}
259
260string GetTestDataDirectory() {
261 const ::testing::TestInfo* const test_info =

Callers 15

TEST_PFunction · 0.85
SendAndCancelRpcsFunction · 0.85
SetUpMethod · 0.85
RandomUtilTestMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
SetUpMethod · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
FileCacheStressTestMethod · 0.85
RandomTestMethod · 0.85

Calls 1

GetCurrentTimeMicrosFunction · 0.85

Tested by

no test coverage detected