From 98e375376412dbe2305f9593c1175134f54578aa Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 18 Feb 2019 05:12:13 -0800 Subject: [PATCH] fix typo --- crypto/libntrup/src/ref/random32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/libntrup/src/ref/random32.c b/crypto/libntrup/src/ref/random32.c index 0896b686b..be1a764a7 100644 --- a/crypto/libntrup/src/ref/random32.c +++ b/crypto/libntrup/src/ref/random32.c @@ -22,7 +22,7 @@ small_random32(void) #else unsigned char x[4]; randombytes(x, 4); - uint32_t x4 = x[3] << 4; + uint32_t x4 = x[3] << 24; return x[0] + (x[1] << 8) + (x[2] << 16) + x4; #endif }