Support dynamic field width in folly::format()
[folly.git] / folly / Random-inl.h
index f18a0b5118db89d1fbcd6b36da1b88601e680057..10da8d3ad2b1e7b37a30bc140e7ca1e3e732d9ff 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -107,7 +107,7 @@ StateSize<std::subtract_with_carry_engine<UIntType, w, s, r>>::value;
 template <class RNG>
 struct SeedData {
   SeedData() {
-    Random::secureRandom(seedData.begin(), seedData.size() * sizeof(uint32_t));
+    Random::secureRandom(seedData.data(), seedData.size() * sizeof(uint32_t));
   }
 
   static constexpr size_t stateSize = StateSize<RNG>::value;