txlcn-common/src/main/java/com/codingapi/txlcn/common/util/id/IdGenInit.java
public static void applySnowFlakeIdGen(int machineLen, long machineId) {
        SnowFlakeGenerator.Factory factory = new SnowFlakeGenerator.Factory(machineLen, 0);
        SnowFlakeGenerator snowFlakeGenerator = factory.create(0, machineId);
        RandomUtils.init(() -> String.valueOf(snowFlakeGenerator.nextId()));
    }
public static void applySnowFlakeIdGen(int machineLen, long machineId) {
        SnowFlakeGenerator.Factory factory = new SnowFlakeGenerator.Factory(machineLen, 0);
        SnowFlakeGenerator snowFlakeGenerator = factory.create(0, machineId);
        RandomUtils.init(() -> String.valueOf(snowFlakeGenerator.nextId()));
    }
public static void applySnowFlakeIdGen ( int machineLen , long machineId ) { SnowFlakeGenerator . Factory factory = new SnowFlakeGenerator . Factory ( machineLen , 0 ) ; SnowFlakeGenerator snowFlakeGenerator = factory . create ( 0 , machineId ) ; RandomUtils . init ( ( ) -> String . valueOf ( snowFlakeGenerator . nextId ( ) ) ) ; }
原版雪花算法，生成一个long类型的ID

@param machineLen 机器位长度
@param machineId  机器ID
原版雪花算法，生成一个long类型的ID