aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/interarrival.h
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-02-11 06:08:58 -0800
committerGravatar Vijay Pai <vpai@google.com>2016-02-11 06:08:58 -0800
commit914455782f10e73a45d491b560373a47b8cc2973 (patch)
treedba6531400397de8ae6ceafa241be91e5e200592 /test/cpp/qps/interarrival.h
parent1132c6b7db990d83fd178c927c39d0b67fa02778 (diff)
Sanity (clang-format and copyright)
Diffstat (limited to 'test/cpp/qps/interarrival.h')
-rw-r--r--test/cpp/qps/interarrival.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cpp/qps/interarrival.h b/test/cpp/qps/interarrival.h
index 33f102fe97..b6fd67b77c 100644
--- a/test/cpp/qps/interarrival.h
+++ b/test/cpp/qps/interarrival.h
@@ -1,6 +1,6 @@
/*
*
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -149,10 +149,10 @@ class InterarrivalTimer {
for (int i = 0; i < entries; i++) {
// rand is the only choice that is portable across POSIX and Windows
// and that supports new and old compilers
- const double uniform_0_1 = static_cast<double>(rand())
- / static_cast<double>(RAND_MAX);
- random_table_.push_back(static_cast<int64_t>(
- 1e9 * r.transform(uniform_0_1)));
+ const double uniform_0_1 =
+ static_cast<double>(rand()) / static_cast<double>(RAND_MAX);
+ random_table_.push_back(
+ static_cast<int64_t>(1e9 * r.transform(uniform_0_1)));
}
// Now set up the thread positions
for (int i = 0; i < threads; i++) {