Live data from Hacker News

Every V4 UUID

everyuuid.com

181–190 of 381 posts

Re: Every V4 UUID

#182
I tried to find the biggest UUID and if I got it right, it's

99999999-9999-4999-9999-999999999999

(note the 4 in the 3rd block)

I'm curious why it's not 99999999-9999-9999-9999-999999999999 (all 9s)?

Re: Every V4 UUID

#183
post #142
post #69

Earlier quoted context omitted.

I'm really happy that the trick was magical to you - I was so surprised and delighted when I realized that this was possible, and I wasn't really sure if anyone else would feel the same way! And of course, I'm proud to be providing so much utility here - finally we can find and use UUIDs tailor-fit to our needs

Memorable UUIDs? I think you're on to something here! (Also, dibs on 00000000-0000-4321-abcd-000000000001!)

That’s amazing! I’ve got the same IPv6 address on my luggage!

Re: Every V4 UUID

#184

Earlier quoted context omitted.

PINs can be up to 6 digits (at least here in the UK, but I doubt it's country specific), even though the ones they give you by default are only ever 4. So that's only a leak of 1% of them.

My card doesn't even let me include repeating digits in its PIN. I suppose it can make a one-off guess more likely than one in a thousand to correctly guess my PIN.

Is it repeating in the whole PIN, or in digits next to each other? I'm trying to resist the nerd snipe of what the total number of possibilities would be in the latter case...

Re: Every V4 UUID

#185
post #27

Sometimes I feel bad when I generate a UUID without using it for anything. Like I've wasted it.

Seriously, this just seems like a frivolous waste of a precious and rapidly dwindling resource…

Re: Every V4 UUID

#186
post #182

I tried to find the biggest UUID and if I got it right, it's 99999999-9999-4999-9999-999999999999 (note the 4 in the 3rd block) I'm curious why it's not 99999999-9999-9999-9999-999999999999 (all 9s)?

The values are hexidecimal, so all "9s" isn't the biggest UUID, but all "f's". Specifically, I think: `ffffffff-ffff-4fff-bfff-ffffffffffff`.

The "4" in the 3rd block is the only permitted value as these UUIDs are using the GUIDv4 format. I'm not sure what's going on in the 4th block, but the references and linked RFC in the Wikipedia article might reveal more details: https://en.wikipedia.org/wiki/Universally_unique_identifier#...

Re: Every V4 UUID

#187
post #182

I tried to find the biggest UUID and if I got it right, it's 99999999-9999-4999-9999-999999999999 (note the 4 in the 3rd block) I'm curious why it's not 99999999-9999-9999-9999-999999999999 (all 9s)?

Because the 4 is always “4”, it denotes the version (uuid v4)

Re: Every V4 UUID

#188
post #182

I tried to find the biggest UUID and if I got it right, it's 99999999-9999-4999-9999-999999999999 (note the 4 in the 3rd block) I'm curious why it's not 99999999-9999-9999-9999-999999999999 (all 9s)?

Looks like it only generates v4 UUIDs, which is a bit of a ripoff.

Also you'll find that the first character of the 4th block is forced to be 8, 9, a, or b. That's true of standard UUIDs of any version.

Re: Every V4 UUID

#190
post #182

I tried to find the biggest UUID and if I got it right, it's 99999999-9999-4999-9999-999999999999 (note the 4 in the 3rd block) I'm curious why it's not 99999999-9999-9999-9999-999999999999 (all 9s)?

The 4 indicates UUIDv4.

If you were looking for the biggest hexadecimal UUID, find one with f instead of 9.

Post reply on HN