aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 9c0c7977..705d9741 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -2481,10 +2481,15 @@ typedef enum
}
gpgme_random_mode_t;
-/* Fill BUFFER with BUFSIZE random bytes from gpg. */
+/* Fill BUFFER with BUFSIZE random bytes from gpg or return an error. */
gpgme_error_t gpgme_op_random_bytes (gpgme_ctx_t ctx, gpgme_random_mode_t mode,
char *buffer, size_t bufsize);
+/* Store an unbiased random value in the range [0,LIMIT) at RETVAL or
+ * return an error. */
+gpgme_error_t gpgme_op_random_value (gpgme_ctx_t ctx, size_t limit,
+ size_t *retval);
+
/*