isaced
isaced

Reputation: 1804

How to generate 32 bit UUID in iOS?

I know that can generate a UUID with NSUUID:

NSString *uuid = [[NSUUID UUID] UUIDString];

But this is 128-bit values.

I want to get a 32-bit UUID how to do that?

Upvotes: 1

Views: 5813

Answers (1)

MendyK
MendyK

Reputation: 1488

A UUID by definition is 128-bit.

A UUID is a 16-octet (128-bit) number.

I believe you can make a 32-bit Unique identifier but it is advised against. If you really need to make a 32 bit Unique identifier here is a pseudo code tutorial that might help.

Upvotes: 3

Related Questions