Merge branch '1947-uuid-docs' into 'master'

guuid: Document that g_uuid_string_random() is not secure

Closes #1947

See merge request GNOME/glib!1246
This commit is contained in:
Emmanuele Bassi 2019-11-25 18:50:12 +00:00
commit eb439076a6

View File

@ -193,7 +193,9 @@ g_uuid_generate_v4 (GUuid *uuid)
/**
* g_uuid_string_random:
*
* Generates a random UUID (RFC 4122 version 4) as a string.
* Generates a random UUID (RFC 4122 version 4) as a string. It has the same
* randomness guarantees as #GRand, so must not be used for cryptographic
* purposes such as key generation, nonces, salts or one-time pads.
*
* Returns: (transfer full): A string that should be freed with g_free().
* Since: 2.52