diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-11-12 04:28:30 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-11-12 04:28:30 +0000 |
commit | 5e4b9c6b61cb5785594479b1d00938e87bb597c2 (patch) | |
tree | cfe90251019c30305f28de4a93068605d3f24896 /src/common/crypto.h | |
parent | 7e4cb9a7502b28448d5c43f48d50d81624ad8cfb (diff) | |
download | tor-5e4b9c6b61cb5785594479b1d00938e87bb597c2.tar.gz tor-5e4b9c6b61cb5785594479b1d00938e87bb597c2.zip |
Remove minor biasing problem from crypto_pseudo_rand_int
svn:r799
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index ab5422d8cd..0d8257fd9c 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -101,7 +101,7 @@ int crypto_SHA_digest(unsigned char *m, int len, unsigned char *digest); int crypto_seed_rng(); int crypto_rand(unsigned int n, unsigned char *to); void crypto_pseudo_rand(unsigned int n, unsigned char *to); -int crypto_pseudo_rand_int(int max); +int crypto_pseudo_rand_int(unsigned int max); /* errors */ char *crypto_perror(); |