Use a defined form of uniform_int_distribution
authorChristopher Dykes <cdykes@fb.com>
Sat, 2 Jul 2016 03:39:26 +0000 (20:39 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Sat, 2 Jul 2016 03:53:25 +0000 (20:53 -0700)
commit1962ee07f5e08781ee58f5fcf319ecae419e4c0e
tree304dce66b0433f7711fd989d211b4f52c0d221c1
parentb292dfea24ac8d9b1a4c0bd2ab9bf1b751ec7cb3
Use a defined form of uniform_int_distribution

Summary: As per http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution the behavior of using `uint8_t` as the template parameter is undefined, and is not supported on MSVC, so use `unsigned short` instead, which is a defined form.

Reviewed By: yfeldblum

Differential Revision: D3507309

fbshipit-source-id: c4c830371d08aee4a3de90bb394d22d92ad9a575
folly/test/FingerprintBenchmark.cpp
folly/test/HashBenchmark.cpp