diff --git a/common/notrandombytes.c b/common/notrandombytes.c index f8145026..6b2b8529 100644 --- a/common/notrandombytes.c +++ b/common/notrandombytes.c @@ -70,7 +70,7 @@ int randombytes(uint8_t *buf, size_t xlen) { surf(); outleft = 8; } - *buf = out[--outleft]; + *buf = (uint8_t) out[--outleft]; ++buf; --xlen; }