forked from github/verilator
Fix C++14 deprecated random_shuffle.
This commit is contained in:
parent
48bcf66ac7
commit
0505816d31
@ -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); }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user