folly test: fix typo in RandomDataHolder::RandomDataHolder
authorJim Meyering <meyering@fb.com>
Mon, 9 May 2016 21:05:43 +0000 (14:05 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Mon, 9 May 2016 21:20:25 +0000 (14:20 -0700)
commit421861958283f956c6202e8c03ffb79258ab3c96
treefd6a03854b4930f7e89e414e5fb20224ae60d179
parent96fd80716195911406292346d03f3c2155f494a9
folly test: fix typo in RandomDataHolder::RandomDataHolder

Summary:
Running the folly/io/test:compression_test with a UBSAN-enabled binary would fail with this:

  folly/io/test/CompressionTest.cpp:96:36: runtime error: shift exponent 16777216 is too large for 64-bit type 'size_t' (aka 'unsigned long')

That exposed the unwanted left-shift.
That made it so the actual "start" offsets were in the range [0..numThreads-1], rather than being
e.g., with numThreads == 8, [0, 1677721633554432, ...].  Oops.

Reviewed By: luciang

Differential Revision: D3277606

fbshipit-source-id: 4bc48f84b0065de070b62a810f08b96e36ea7136
folly/io/test/CompressionTest.cpp