Commit ca33aa31 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 6

ConstantRNG should implement UniformRandomBitGenerator

Summary: As per http://en.cppreference.com/w/cpp/concept/UniformRandomBitGenerator it was almost there, except that `min()` and `max()` need to be static members.

Reviewed By: yfeldblum

Differential Revision: D3507595

fbshipit-source-id: 5e0b321c477e37ab8a3487ad643caa83cc6cfc9d
parent 1c1a6b45
......@@ -55,10 +55,10 @@ TEST(Random, FixedSeed) {
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
result_type min() {
static result_type min() {
return std::numeric_limits<result_type>::min();
}
result_type max() {
static result_type max() {
return std::numeric_limits<result_type>::max();
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment