diff options
author | Brian Smith <brian@briansmith.org> | 2015-04-15 05:21:27 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-15 06:06:29 +0300 |
commit | 370077824821ad2cfce722a9505ac366f84c172a (patch) | |
tree | 46b554a11b5d81b9a6d9a484c7d675cc249fb5a9 /crypto/rand/rand.c | |
parent | c3ef76f32740238d9553dc123ac567920331286f (diff) |
Fix Windows build failures caused by 310d4dd.
MSVC doesn't like |const size_t len| in a function definition where the
declaration was just |size_t len| without the |const|. Also, MSVC needs
declarations of parameterless functions to have a |void| parameter list.
Change-Id: I91e01a12aca657b2ee1d653926f09cc52da2faed
Reviewed-on: https://boringssl-review.googlesource.com/4329
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/rand/rand.c')
-rw-r--r-- | crypto/rand/rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand.c b/crypto/rand/rand.c index 66558279..ae30edb3 100644 --- a/crypto/rand/rand.c +++ b/crypto/rand/rand.c @@ -72,7 +72,7 @@ extern void CRYPTO_chacha_20(uint8_t *out, const uint8_t *in, size_t in_len, const uint8_t key[32], const uint8_t nonce[8], size_t counter); -int RAND_bytes(uint8_t *buf, const size_t len) { +int RAND_bytes(uint8_t *buf, size_t len) { if (len == 0) { return 1; } |