folly: fix constexpr methods in RandomTest on macos
authorWez Furlong <wez@fb.com>
Sat, 16 Jul 2016 21:32:38 +0000 (14:32 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Sat, 16 Jul 2016 21:38:34 +0000 (14:38 -0700)
commit92fd1080ccc6b1d74def6fe4fe85dbafa2d38fc6
treee7f0972b1a8e04aacdce9454326f437ac2efb43a
parent95fb46dbe9c171dc3d0a549822d84a3c4cdf728b
folly: fix constexpr methods in RandomTest on macos

Summary:
the RNG max and min methods must be marked constexpr in order to
compile.  The macos compiler doesn't know to propagate the constexpr-ness from
numeric_limits::max on its own, so we have to be explicit (this also matches
the annotations in ThreadLocalPRNG in Random.h)

Reviewed By: yfeldblum

Differential Revision: D3576189

fbshipit-source-id: e4eeb3361d1c48f582dad5a52e35cae133f007a1
folly/test/RandomTest.cpp