Initialize pcg::generator state with zeros by default
This commit is contained in:
parent
d421fc8c65
commit
18d8ddfb34
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ namespace psemek::pcg
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::uint64_t state_;
|
std::uint64_t state_ = 0;
|
||||||
std::uint64_t inc_;
|
std::uint64_t inc_ = 0;
|
||||||
|
|
||||||
template <typename RD>
|
template <typename RD>
|
||||||
static std::uint64_t gen64(RD & rd)
|
static std::uint64_t gen64(RD & rd)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue