Questions tagged [uuid]

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID is a 16-octet (128-bit) number. In its canonical form, a UUID is represented by 32 hexadecimal digits, displayed in five groups separated by hyphens e.g.

5a0e8422-e29b-41d4-a716-416155440000

UUID is standardised by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).

Wikipedia page for Universally Unique Identifier

See also:

3237 questions
1
vote
0 answers

Illuminate\Foundation\Auth\User returning keyType: int

I am using the following trait to generate UUID's for my user model. I have setup a listener to the following event: Illuminate\Auth\Events\Login. This works when you just normally sign-in to the app (using Laravel Breeze). But when I manually do…
Liam Seys
  • 31
  • 1
1
vote
1 answer

crypto.getRandomValues() not supported in React.js

There is a npm package we made for our team usage and inside that we are using this uuidjs. Now I have installed this custom npm package on my Create-React-App which am testing with testing-library. When I test the component which imports the files…
Nikita Kumari
  • 309
  • 3
  • 7
1
vote
1 answer

how to get TimeBasedUuID using fasterxml for a specific date or for 24hrs before

Hi I trying to generate the timeBasedUUID for previous day. But it's always returning teh UUID for current date. My Code: public static long getTimeFromUUID(UUID uuid) { return (uuid.timestamp() - NUM_100NS_INTERVALS_SINCE_UUID_EPOCH) / 10000; …
Sooriya
  • 73
  • 1
  • 8
1
vote
1 answer

How to validate UUIDs generated using base64UUID

How to validate UUIDs generated using base64UUID function (i.e. org.elasticsearch.common.UUIDs.base64UUID) We don't want users to persist anything which doesn't confirm to the above format
Rpj
  • 5,348
  • 16
  • 62
  • 122
1
vote
1 answer

Fetch Core Data using UUID

How do you fetch an object using its UUID? I have an object (TimeCode) with an id attribute that is of type UUID in the xcdatamodel file. I want to fetch an object of this type from CoreData by using this id attribute in the standard NSPredicate,…
greatxp117
  • 57
  • 11
1
vote
1 answer

React native uuid [Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported]

In React native project uuid library giving runtime error Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported
deepanshu katyal
  • 631
  • 1
  • 8
  • 18
1
vote
0 answers

Customize viewset to get an item id combine of slug and uuid Django Rest Framework

I want to get each single item from my database by a id combine of slug and uuid. In my model I have: class Product(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) slug =…
1
vote
1 answer

ID which consists of slug and uuid Django Rest Framework

I want to identify my database items over id which consists of slug and uuid, so if two users add f.e. name of the item: "Mercedes A40", they will be stored in database with different ids f.e. "mercedes-a40-25b6e133" and…
1
vote
3 answers

Struct's id of type UUID changes everytime i try to access it

I have a struct which is parsed from JSON, but contains another struct Article that must be identifiable. It looks like this: import Foundation struct TopHeadlines: Codable { var totalArticles: Int var articles: [Article] struct…
user3241620
  • 95
  • 1
  • 1
  • 11
1
vote
1 answer

Is mixing uuidv4 and uuidv5 collision safe?

I have a key value store where rows are indexed by uuid. For some of the keys I generate the key with uuidv4. For some of the other keys I generate the key from two other uuids from that same key value…
david_adler
  • 9,690
  • 6
  • 57
  • 97
1
vote
1 answer

Is there a way to replicate java UUID.nameUUIDFromBytes(byte[] name) functionality in postresql?

I'm trying to replicate Java UUID.nameUUIDFromBytes method in Postgres. I've created uuid-ossp extension CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; In Java I call UUID.nameUUIDFromBytes((NAMESPACE + someString).getBytes()) Both NAMESPACE and…
alexlys
  • 49
  • 5
1
vote
1 answer

Cassandra Partition Key and Clustering Column Size

How does cassandra calculates the size of partitioning key and clustering key . We have tables with with relatively large partitioning keys (UUID and combination of UUID) along with large clustering key for…
1
vote
1 answer

UUID for a page content in AEM across author and it's associated publish servers are different

A page in author with UUID(jcr:uuid) is activated and its content is replicated onto the 3 associated publish servers. The content available in all the 3 publish servers has different UUIDs. So, considering the same content across all the 4…
1
vote
1 answer

Rust define new Uuid namespace

I'm using the rust uuid crate: https://crates.io/crates/uuid I need a "v5" id generated with a custom namespace for my program. What is the correct way to define a custom namespace? I looked at the source code of how the NAMESPACE_OID is…
l3utterfly
  • 2,106
  • 4
  • 32
  • 58
1
vote
2 answers

Generating a stable uuid ID across with clauses in GBQ

I'm trying to generate a UUID within a with clause on GBQ and then use it in a subsequent with clause for a join. with q1 as ( select generate_uuid() as uuid ), q2 as ( select uuid from q1 ) select * from q1 union all select * from…
altabq
  • 1,322
  • 1
  • 20
  • 33