Skip to content

Commit

Permalink
fix: dna msvc error
Browse files Browse the repository at this point in the history
  • Loading branch information
AsPJT committed Mar 28, 2024
1 parent ee24b8c commit c41a878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Library/PAX_SAPIENTICA/Simulation/Chromosome.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*##########################################################################################
/*##########################################################################################
PAX SAPIENTICA Library 💀🌿🌏
Expand Down Expand Up @@ -96,7 +96,7 @@ namespace paxs {
static Chromosome generateRandom() noexcept {
std::random_device seed_gen;
std::mt19937 engine(seed_gen());
std::uniform_int_distribution<std::uint_least8_t> dist(std::numeric_limits<std::uint_least8_t>::min(), std::numeric_limits<std::uint_least8_t>::max());
std::uniform_int_distribution<> dist(std::numeric_limits<std::uint_least8_t>::min(), std::numeric_limits<std::uint_least8_t>::max());

Chromosome random_chromosome;
for (std::uint_least8_t i = 0; i < chromosome_length; ++i) {
Expand Down
4 changes: 2 additions & 2 deletions Library/PAX_SAPIENTICA/Simulation/Gene.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*##########################################################################################
/*##########################################################################################
PAX SAPIENTICA Library 💀🌿🌏
Expand Down Expand Up @@ -64,7 +64,7 @@ namespace paxs {

std::random_device seed_gen;
std::mt19937 engine(seed_gen());
std::uniform_int_distribution<std::uint_least8_t> dist(std::numeric_limits<std::uint_least8_t>::min(), std::numeric_limits<std::uint_least8_t>::max());
std::uniform_int_distribution<> dist(std::numeric_limits<std::uint_least8_t>::min(), std::numeric_limits<std::uint_least8_t>::max());
gene.setMtDNA(dist(engine));
gene.setYDNA(dist(engine));
return gene;
Expand Down

0 comments on commit c41a878

Please sign in to comment.