← Pasfhocail & slándáil

Pasfhocal / uirlisí slándála

UUID gineadóir

Cruthaigh aitheantóirí randamacha UUID leagan 4, ceann ag an am nó i mbaisceanna.

Ritheann sé i do bhrabhsálaí

Gin idir 1 agus 100 UUID in aghaidh an bhaisc.

Gintear aitheantóirí randamacha UUID leagan 4 ag úsáid foinse randamach cripteagrafach do bhrabhsálaí. Aithníonn UUID taifid; úsáid a bhaint as dintiúirí saintógtha le haghaidh fíordheimhnithe.

English guide · Ghid în română

Practical guide

Generate random version 4 UUIDs for application records, fixtures or temporary identifiers. Their familiar shape makes them easy to carry between tools, but they do not encode a creation time or sequence.

Steps that matter

  1. Choose the number of identifiers needed for your task.
  2. Generate the batch and copy the values in the format your application expects.
  3. Use a database uniqueness constraint when identifiers must be unique within stored records.

Worked example

In the pattern xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, the 4 identifies version 4 and y is one of 8, 9, a or b. The other positions vary between generated UUIDs.

Check before using the result

  • UUIDs are identifiers, not an authorization system. Knowing an identifier must not grant access to another user’s private record.
  • Random UUID order does not represent creation order. Store a separate timestamp when chronology matters.