fauxflake
fauxflake copied to clipboard
duplicate ids being generated
I was a bit surprised to see that this code in a unit test produces two duplicates:
IdGenerator snowflake = IdGenerators.newSnowflakeIdGenerator();
for (int i = 0; i < 10; i++) {
String id = snowflake.generateId(1000).asString();
System.out.println(id);
}
output:
ffffffffffed8000
ffffffffffed8000
ffffffffffed8001
ffffffffffed8002
ffffffffffed8003
ffffffffffed8004
ffffffffffed8005
ffffffffffed8006
ffffffffffed8000
ffffffffffed8001
note this is on a 'normal´ windows developer machine, not a docker container.
This may be due to issue #5
There are fixes that are not merged for months. Is this project still maintained? Is there an alternative?
@rholder Any chances for new release with fixes from PRs?