Expose more functions/constructors on BucketedTimeSeries
[folly.git] / folly / test / RandomBenchmark.cpp
index cc17e5ee2ad9fe6e9030c429fb83b9281618f1c0..287482e5f3b9c71665fd96c05d962eea16aa6bbc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 #include <folly/Benchmark.h>
 #include <folly/Foreach.h>
-#include <folly/Range.h>
 
 #include <glog/logging.h>
 
-#include <algorithm>
 #include <thread>
-#include <vector>
 #include <random>
 
 using namespace folly;
@@ -63,7 +60,7 @@ BENCHMARK(RandomDouble) { doNotOptimizeAway(Random::randDouble01()); }
 BENCHMARK(Random32) { doNotOptimizeAway(Random::rand32()); }
 BENCHMARK(Random32Num) { doNotOptimizeAway(Random::rand32(100)); }
 BENCHMARK(Random64) { doNotOptimizeAway(Random::rand64()); }
-BENCHMARK(Random64Num) { doNotOptimizeAway(Random::rand64(100ul << 32)); }
+BENCHMARK(Random64Num) { doNotOptimizeAway(Random::rand64(100ull << 32)); }
 BENCHMARK(Random64OneIn) { doNotOptimizeAway(Random::oneIn(100)); }
 
 int main(int argc, char** argv) {