Skip to content

Commit 5a3357c

Browse files
authored
Merge pull request #1601 from synthetichealth/dup_uuid_fix
Reduce chances of duplicate uuids in large populations
2 parents 8ffe69c + 303b93b commit 5a3357c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/mitre/synthea/helpers/DefaultRandomNumberGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public long randLong() {
7070

7171
@Override
7272
public UUID randUUID() {
73-
return new UUID(randLong(), randLong());
73+
return new UUID(seed, randLong());
7474
}
7575

7676
@Override

src/test/java/org/mitre/synthea/helpers/TransitionMetricsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void testExampleModule() throws Exception {
9292
assertEquals(3, dests.get("Age_Guard").get()); // they went here
9393

9494
m = TransitionMetrics.getMetric(example.name, "Pre_Examplitis");
95-
assertEquals(1, m.entered.get());
95+
assertEquals(2, m.entered.get());
9696

9797
m = TransitionMetrics.getMetric(example.name, "Terminal");
9898
assertEquals(3, m.entered.get());

0 commit comments

Comments
 (0)