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
1 answer

UUID to (hex array?)

I'm following a tutorial and it says the UUID is 65210001-28D5-4B7B-BADF-7DEE1E8D1B6D then he adds it to the code in this format, without explaining how the conversion happened: // Simple Service UUID: 65210001-28D5-4B7B-BADF-7DEE1E8D1B6D static…
exile97
  • 317
  • 3
  • 10
1
vote
1 answer

Windows Phone 7 - Use Native DLL - Need GUID of Class and Interface

I need to use C++ Native DLL in Windows Phone 7 application. I am using DllImport project which shows the way to include native code in Windows Phone 7 Application. It uses FileSystem.dll file to perform actios using Native Code. I need to use my…
Let me Ask
  • 1,029
  • 1
  • 8
  • 33
1
vote
1 answer

How to generate a deterministic set of UUIDs in golang

I'm doing some testing and it would be useful to have a known set of UUIDs that are getting used by our code. However, I'm having trouble figuring out how to create a deterministic set of UUIDs in golang. I've tried a few approaches, but neither…
caffein
  • 575
  • 8
  • 26
1
vote
3 answers

Swift: Removing duplicate objects from array with a UUID

I am using a UUID to get the use of DiffableDataSource but I am working with a data set that has a duplicate of every object. Here is a sample of the code I am working with from a playground: var movies: [MovieSearch] = [] struct MovieSearch:…
1
vote
1 answer

Issues with sorting uuids in xml with XSLT

Here is the part of .xml file which I need to parse
sandy
  • 29
  • 6
1
vote
1 answer

Refresh UUID on model object save

so I have a model and I am using a UUID field. I just simply want to change the UUID(refresh the UUID) to a new UUID every time a model object is saved. import uuid from django.db import models class MyUUIDModel(models.Model): id =…
Shrinidhi Hegde
  • 454
  • 3
  • 14
1
vote
0 answers

UUID validation returns a 500 error from oapi-coden generated validators

I'm using deepmap/oapi-codegen to generate a chi-server from a openapi 3.0.3 specification, most of it works just fine but I'm having an issue with UUID validation. I've defined a path parameter like this (not a complete definition): openapi:…
h00ligan
  • 1,471
  • 9
  • 17
1
vote
1 answer

Python convert str variable to UUID type

I am trying to convert str variable to UUID type. Online tutorials point to below code import uuid delete_uuid = "5d27bf88-f3dd-4e95-89c1-f200c8484b42" your_uuid_string = uuid.UUID(delete_uuid).hex print(type(your_uuid_string)) but the output is…
Zaks
  • 668
  • 1
  • 8
  • 30
1
vote
0 answers

Generate UUID in Android Studio and use the same UUID after reinstalling the App

In this project that I'm working on, I want a unique ID for a Device that is using my App. I've decided to use UUID (Universally Unique Identifier) in my project. Basically what I want is to assign this UUID to any files generated by my App. My…
ManuKovera
  • 45
  • 1
  • 7
1
vote
2 answers

Will Vendor ID change or get affected if I install an .ipa over the existing .ipa file?

Currently I am facing a very doubtful scenario regarding VENDOR ID. I am getting VENDOR ID by using the code : UIDevice.currentDevice().identifierForVendor!.UUIDString So I want to know whether it will create different vendor id if I installed an…
user16780334
  • 422
  • 5
  • 20
1
vote
0 answers

Django UUIDField vs Timeflake as primary key

I have an API written using Django Rest Framework and I'm using Postgres as my DB. I'm looking to convert my primary key to a more obscured format as I do expose them in external URLs. In my research, I came across this package called Timeflake and…
moku
  • 4,099
  • 5
  • 30
  • 52
1
vote
1 answer

Side-effect of std::srand/rand and libuuid uuid_generate

For testing I need reproducible random numbers. The randomness isn't that important. Currently I'm setting a seed std::srand(x) and use std::rand() to generate. As expected the numbers are always the same on multiple runs with the same seed. For…
Jarvum
  • 76
  • 1
  • 7
1
vote
1 answer

Combination of UUID and integer value as primary key in one database in MySQL

Could you give me any advice, if will be good to mix UUID as primary key and auto increments integer value for different tables in that same database? We want to rebuild database which will be bigger in time and will works in distributed…
1
vote
1 answer

How do I generate a UUID in Crystal?

I'm experimenting with the Crystal standard library and was wondering how to generate a UUID? The UUID.new(..) constructors all seem to expect arguments, but how do I just generate a random one?
yiwei
  • 4,022
  • 9
  • 36
  • 54
1
vote
0 answers

MongoDB UUID Deserialization

I have a collection where each document contains a UUID stored as Binary. I deserialize it using gson.fromJson(document.toJson(), Class.class);, but I get an exception of type JsonSyntaxException where the UUID is being deserialized. Is there a…
Ferskfisk
  • 25
  • 3