Simplify the StateSize helper in Random
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 31 Jul 2017 00:58:29 +0000 (17:58 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 31 Jul 2017 01:22:11 +0000 (18:22 -0700)
commitda591fe6677a17070b8e123f7d450e75e435c788
tree37188783787819998705f097e22e80a6b28c91c1
parent2562ef37a103e642bfd20b88413fcc97bc6a5796
Simplify the StateSize helper in Random

Summary:
[Folly] Simplify the `StateSize` helper in `Random`.

* Using member type aliases rather than class constants means we can remove definitions.
* Partially specializing over all RNG types with `state_size` class constants means we can remove the `mersenne_twister` specializations, which have many template parameters and are a pain.

Reviewed By: Orvid

Differential Revision: D5525144

fbshipit-source-id: bc27f112ed0d9b55befe9dabe08c4d345a402435
folly/Random-inl.h
folly/Random.h
folly/test/RandomTest.cpp