• Creates a new Sandcorn ID generator for the current computer

    Returns (tick?: number) => string

    A function that generates unique Sandcorn IDs

    const generateId = createSandcornGenerator();

    // Generate IDs for your distributed application
    function createNewTask(name: string) {
    return {
    id: generateId(),
    name,
    createdAt: os.epoch()
    };
    }