Skip to content

Commit

Permalink
Merge branch 'msu-sparta:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Shihab-Shahriar authored Dec 13, 2023
2 parents 7e0c87b + 057f6b4 commit 01e95b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/openrand/phillox.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ class Phillox : public BaseRNG<Phillox> {
generate();

static_assert(std::is_same_v<T, uint32_t> || std::is_same_v<T, uint64_t>);
if constexpr (std::is_same_v<T, uint32_t>) return _out[0];
if constexpr (std::is_same_v<T, uint32_t>)
return _out[0];

// Not wrapping this block in else{} would lead to compiler warning
else {
Expand Down

0 comments on commit 01e95b4

Please sign in to comment.