mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
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:
parent
7b77439841
commit
812253a95f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user