From 5e6f4e7780776d79ab90ff18f80e9ff577fa2a2e Mon Sep 17 00:00:00 2001 From: Orvid King Date: Wed, 29 Jul 2015 10:45:41 -0700 Subject: [PATCH] Fix Random-inl.h under MSVC Summary: With MSVC, `seedData.begin()` does not return a `void*`, so get a pointer to the data, and explicitly cast that to a `void*` instead. Closes #251 Reviewed By: @yfeldblum Differential Revision: D2282929 Pulled By: @sgolemon --- folly/Random-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Random-inl.h b/folly/Random-inl.h index c7763384..10da8d3a 100644 --- a/folly/Random-inl.h +++ b/folly/Random-inl.h @@ -107,7 +107,7 @@ StateSize>::value; template 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::value; -- 2.34.1