org.javers.core.commit.DistributedCommitSeqGenerator Maven / Gradle / Ivy
package org.javers.core.commit;
import java.util.UUID;
/**
* Generates commitId with random majorId and minorId set to 0.
*
* @author bartosz.walacik
*/
class DistributedCommitSeqGenerator {
CommitId nextId() {
return new CommitId(Math.abs(UUID.randomUUID().getLeastSignificantBits()),0);
}
}