Update values to fit DB
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <cinttypes>
|
||||
|
||||
constexpr uint64_t StartHeader = 1737720524UL;
|
||||
constexpr int64_t StartHeader = 1737720524UL;
|
||||
|
||||
enum Mess
|
||||
{
|
||||
|
@@ -32,7 +32,7 @@ struct DnaManagerData
|
||||
{
|
||||
int generation;
|
||||
uint128 randSeed;
|
||||
uint64_t id;
|
||||
int64_t id;
|
||||
int queued;
|
||||
int showed;
|
||||
std::vector<Dna> vector;
|
||||
|
@@ -10,7 +10,7 @@ struct uint128
|
||||
|
||||
namespace mrand
|
||||
{
|
||||
uint128 getState(unsigned long long seed);
|
||||
uint128 getState(unsigned long seed);
|
||||
float getFloat(uint128 *state);
|
||||
int getValue(int min, int max, uint128 *state);
|
||||
unsigned int computeCRC32(void *data, int dataSize);
|
||||
|
@@ -34,10 +34,8 @@ uint64_t rprand_splitmix64(uint64_t &rprand_seed)
|
||||
|
||||
namespace mrand
|
||||
{
|
||||
uint128 getState(unsigned long long seed)
|
||||
uint128 getState(unsigned long rprand_seed)
|
||||
{
|
||||
uint64_t rprand_seed = (uint64_t)seed; // Set SplitMix64 seed for further use
|
||||
|
||||
uint128 rprand_state;
|
||||
|
||||
// To generate the Xoshiro128** state, we use SplitMix64 generator first
|
||||
|
Reference in New Issue
Block a user