diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-18 21:19:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-18 21:19:14 +0000 |
commit | a18770487227bce6e356f169aa86bdef70370c76 (patch) | |
tree | 2295aeb0a3ed5757e335ac632cab90563194bd02 /src/common/crypto.h | |
parent | 43d64df4fc582c698b2e2ebdaff4891409d3b6be (diff) | |
download | tor-a18770487227bce6e356f169aa86bdef70370c76.tar tor-a18770487227bce6e356f169aa86bdef70370c76.tar.gz |
r12980@Kushana: nickm | 2007-05-18 14:11:05 -0400
Add a "swap" function to smartlist, add a "shuffle" function for smartlist to crypto.c, and make appropriate hashtable functions be more const.
svn:r10208
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index c85fc118e..62c7674bb 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -157,6 +157,7 @@ uint64_t crypto_rand_uint64(uint64_t max); struct smartlist_t; void *smartlist_choose(const struct smartlist_t *sl); +void smartlist_shuffle(struct smartlist_t *sl); int base64_encode(char *dest, size_t destlen, const char *src, size_t srclen); int base64_decode(char *dest, size_t destlen, const char *src, size_t srclen); |