• Imacat@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Would they not have monotonic uuids after altering the code in the article to use a function or lambda as they suggested?

      • Imacat@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        I’ve more of a math background than cs so monotonic is a word I know well but it apparently means something slightly different to me. Monotonicity isn’t mentioned anywhere in that link.

        • deborah@awful.systems
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 months ago

          okay, for some reason, I feel the need to help.

          The given link defines the function that creates a UUID:

          uuid.uuid4(): Generate a random UUID.

          In mathematics, can you generate a monotonic function by generating random numbers?

          • Imacat@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            3 months ago

            Thanks for trying to explain it. I was hung up on thinking all UUIDs looked like UUID v4. I read up a little on UUID v7 and it’s making sense. Probably should’ve done that sooner.

          • ebu@awful.systems
            link
            fedilink
            English
            arrow-up
            0
            ·
            3 months ago

            you are probably a better person than i am for actually giving an explanation