aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-01 21:59:05 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-01 21:59:05 +0000
commit219ad6395cea5403857c3adf1b938741dba79c4f (patch)
treee754d3a9a6caf6dce643492a2c48bca20a0e230e /src/common/crypto.h
parentf6e165ea0146550f1882611e4395d92251f71ee7 (diff)
downloadtor-219ad6395cea5403857c3adf1b938741dba79c4f.tar
tor-219ad6395cea5403857c3adf1b938741dba79c4f.tar.gz
r8825@totoro: nickm | 2006-10-01 17:41:27 -0400
Add function to return a random uint64_t. svn:r8570
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 050849cfe..375e2c550 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -15,6 +15,7 @@
#define CRYPTO_H_ID "$Id$"
#include <stdio.h>
+#include "torint.h"
/** Length of the output of our message digest. */
#define DIGEST_LEN 20
@@ -152,6 +153,7 @@ int crypto_expand_key_material(const char *key_in, size_t in_len,
int crypto_seed_rng(void);
int crypto_rand(char *to, size_t n);
int crypto_rand_int(unsigned int max);
+uint64_t crypto_rand_uint64(uint64_t max);
struct smartlist_t;
void *smartlist_choose(const struct smartlist_t *sl);