summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_rnd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/gnutls_rnd')
-rw-r--r--doc/functions/gnutls_rnd22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/functions/gnutls_rnd b/doc/functions/gnutls_rnd
new file mode 100644
index 0000000..7290daa
--- /dev/null
+++ b/doc/functions/gnutls_rnd
@@ -0,0 +1,22 @@
+
+
+
+
+@deftypefun {int} {gnutls_rnd} (gnutls_rnd_level_t @var{level}, void * @var{data}, size_t @var{len})
+@var{level}: a security level
+
+@var{data}: place to store random bytes
+
+@var{len}: The requested size
+
+This function will generate random data and store it to output
+buffer. The value of @code{level} should be one of @code{GNUTLS_RND_NONCE} ,
+@code{GNUTLS_RND_RANDOM} and @code{GNUTLS_RND_KEY} . See the manual and
+@code{gnutls_rnd_level_t} for detailed information.
+
+This function is thread-safe and also fork-safe.
+
+@strong{Returns:} Zero on success, or a negative error code on error.
+
+@strong{Since:} 2.12.0
+@end deftypefun