rand: remove sizeof(uint8_t) because it's always 1
This commit is contained in:
@@ -290,7 +290,7 @@ void xmpp_rand_nonce(xmpp_ctx_t *ctx, char *output, size_t len)
|
|||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
uint8_t rand_buf[rand_len];
|
uint8_t rand_buf[rand_len];
|
||||||
#else
|
#else
|
||||||
uint8_t* rand_buf = (uint8_t*)_alloca(sizeof(uint8_t) * rand_len);
|
uint8_t* rand_buf = (uint8_t*)_alloca(rand_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* current implementation returns printable HEX representation of
|
/* current implementation returns printable HEX representation of
|
||||||
|
|||||||
Reference in New Issue
Block a user