guuid: Document that g_uuid_string_random() is not secure

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #1947
This commit is contained in:
Philip Withnall 2019-11-25 10:08:05 +00:00
parent 7b77439841
commit 812253a95f

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