Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are basically 2 type of common UUIDs : 1 and 4.

UUID1 is generated from mac address of the machine + timestamp + random bits and UUID4 is completely random. Sometimes you'd want one sometimes the other.

You can try these in python as:

    >>> import uuid
    >>> uuid.uuid1()
    >>> uuid.uuid4()




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: