Skip to content

Commit

Permalink
fix: update random engine seed generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kenavolic committed Apr 16, 2020
1 parent e8a8486 commit 111e136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/include/statismo/core/RandUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace statismo::rand
* \ingroup Core
*/
inline std::minstd_rand &
RandGen(unsigned seed = static_cast<unsigned>(std::time(nullptr)))
RandGen(unsigned seed = static_cast<unsigned>(std::random_device{}()))
{
static std::minstd_rand s_rg{ seed };
return s_rg;
Expand Down

0 comments on commit 111e136

Please sign in to comment.