fauxflake
fauxflake copied to clipboard
docker container causes same id to be generated every time
For some reason whenever I run an application using fauxflake inside a docker, it always generates the same id (this is a single long running instance of a linux container), even if the container stays up and has net=host set.
private static IdGenerator snowflake = IdGenerators.newSnowflakeIdGenerator(); snowflake.generateId(1000).asString();
always yields ffffffffffc01000
works perfectly outside the container though.
Hi, this may be issue #5 . I submitted #7 but rholder hasn't responded. I also describe a workaround in the report.