string_random


Description:

[ Version ( since = "2.52" ) ]
public string string_random ()

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.

Returns:

A string that should be freed with g_free.


Namespace: GLib.Uuid
Package: glib-2.0