summaryrefslogtreecommitdiff
path: root/lib/random.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-02 08:43:47 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-02 08:44:33 +0100
commit8e6364e0905875e5f2b0722e01ad1f0ed656f465 (patch)
tree96dd572e8f89301e622836a21cbf9f20d217d9b6 /lib/random.c
parentb9d2c08d490f0ef3125af4f97ae2a45b8ba8a1f9 (diff)
downloadgnutls-8e6364e0905875e5f2b0722e01ad1f0ed656f465.tar.gz
gnutls_rnd: document the available values of level [ci skip]
This enables using the function by only checking the man page.
Diffstat (limited to 'lib/random.c')
-rw-r--r--lib/random.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/random.c b/lib/random.c
index 977d7aa3ec..ba7333dc85 100644
--- a/lib/random.c
+++ b/lib/random.c
@@ -124,7 +124,9 @@ void _gnutls_rnd_deinit(void)
* @len: The requested size
*
* This function will generate random data and store it to output
- * buffer.
+ * buffer. The value of @level should be one of %GNUTLS_RND_NONCE,
+ * %GNUTLS_RND_RANDOM and %GNUTLS_RND_KEY. See the manual and
+ * %gnutls_rnd_level_t for detailed information.
*
* This function is thread-safe and also fork-safe.
*