Provide means to seed rng
This commit is contained in:
@@ -54,7 +54,7 @@ struct __attribute__((__visibility__("default"))) ConflictSet {
|
||||
|
||||
/// Reads where readVersion < oldestVersion will result in `TooOld`. There are
|
||||
/// no writes initially.
|
||||
explicit ConflictSet(int64_t oldestVersion);
|
||||
explicit ConflictSet(int64_t oldestVersion, uint64_t seed);
|
||||
~ConflictSet();
|
||||
|
||||
#if __cplusplus > 199711L
|
||||
@@ -126,7 +126,7 @@ void ConflictSet_addWrites(ConflictSet *cs,
|
||||
void ConflictSet_setOldestVersion(ConflictSet *cs, int64_t oldestVersion);
|
||||
/// Reads where readVersion < oldestVersion will result in `TooOld`. There are
|
||||
/// no writes initially.
|
||||
ConflictSet *ConflictSet_create(int64_t oldestVersion);
|
||||
ConflictSet *ConflictSet_create(int64_t oldestVersion, uint64_t seed);
|
||||
void ConflictSet_destroy(ConflictSet *cs);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user