uu package:gi-glib

Parses the string str and verify if it is a UUID. The function accepts the following syntax:
  • simple forms (e.g. f81d4fae-7dec-11d0-a765-00a0c91e6bf6)
Note that hyphens are required within the UUID string itself, as per the aforementioned RFC. Since: 2.52
Generates a random UUID (RFC 4122 version 4) as a string. It has the same randomness guarantees as Rand, so must not be used for cryptographic purposes such as key generation, nonces, salts or one-time pads. Since: 2.52