Fix C++14 deprecated random_shuffle.

This commit is contained in:
Wilson Snyder 2020-11-03 08:52:47 -05:00
parent 48bcf66ac7
commit 0505816d31

View File

@ -49,8 +49,8 @@ extern std::string VL_TO_STRING_W(int words, WDataInP obj);
class VlURNG {
public:
typedef size_t result_type;
static size_t min() { return 0; }
static size_t max() { return 1ULL << 31; }
static constexpr size_t min() { return 0; }
static constexpr size_t max() { return 1ULL << 31; }
size_t operator()() { return VL_MASK_I(31) & VL_RANDOM_I(32); }
};