summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-01-10 12:54:55 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-01-10 13:06:08 +0200
commite0e0338dc42ed786979759d56e0b65f129a5df8c (patch)
tree194725bdba30a390aa470dc5614eb399b6780da6 /src/lib/crypt_ops
parentf4938179c50cc385b7599e5a03388792e46cde83 (diff)
downloadtor-e0e0338dc42ed786979759d56e0b65f129a5df8c.tar.gz
tor-e0e0338dc42ed786979759d56e0b65f129a5df8c.zip
Rename crypto_rand_uint32() -> crypto_rand_u32()
See https://github.com/torproject/tor/pull/624#discussion_r246453777
Diffstat (limited to 'src/lib/crypt_ops')
-rw-r--r--src/lib/crypt_ops/crypto_rand.c2
-rw-r--r--src/lib/crypt_ops/crypto_rand.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c
index 7a2c417e5a..d148dfb3a8 100644
--- a/src/lib/crypt_ops/crypto_rand.c
+++ b/src/lib/crypt_ops/crypto_rand.c
@@ -532,7 +532,7 @@ crypto_rand_unmocked(char *to, size_t n)
* Draw an unsigned 32-bit integer uniformly at random.
*/
uint32_t
-crypto_rand_uint32(void)
+crypto_rand_u32(void)
{
uint32_t rand;
crypto_rand((void*)&rand, sizeof(rand));
diff --git a/src/lib/crypt_ops/crypto_rand.h b/src/lib/crypt_ops/crypto_rand.h
index 61fd82c806..874fcd4d08 100644
--- a/src/lib/crypt_ops/crypto_rand.h
+++ b/src/lib/crypt_ops/crypto_rand.h
@@ -27,7 +27,7 @@ int crypto_rand_int(unsigned int max);
int crypto_rand_int_range(unsigned int min, unsigned int max);
uint64_t crypto_rand_uint64_range(uint64_t min, uint64_t max);
time_t crypto_rand_time_range(time_t min, time_t max);
-uint32_t crypto_rand_uint32(void);
+uint32_t crypto_rand_u32(void);
uint64_t crypto_rand_uint64(uint64_t max);
double crypto_rand_double(void);
struct tor_weak_rng_t;