diff options
author | 2016-02-11 06:08:58 -0800 | |
---|---|---|
committer | 2016-02-11 06:08:58 -0800 | |
commit | 914455782f10e73a45d491b560373a47b8cc2973 (patch) | |
tree | dba6531400397de8ae6ceafa241be91e5e200592 /test/cpp/qps/interarrival.h | |
parent | 1132c6b7db990d83fd178c927c39d0b67fa02778 (diff) |
Sanity (clang-format and copyright)
Diffstat (limited to 'test/cpp/qps/interarrival.h')
-rw-r--r-- | test/cpp/qps/interarrival.h | 10 |
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++) { |