From df9356f54bd6396447e2a465b8efda2fdbd21147 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 6 Mar 2010 09:50:10 +0200 Subject: [PATCH] nrand48: small fixes --- compat/nrand48.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/nrand48.c b/compat/nrand48.c index 9498ef0e62..020417e4cb 100644 --- a/compat/nrand48.c +++ b/compat/nrand48.c @@ -26,7 +26,7 @@ long nrand48 (unsigned short subi[3]) { - const uint64_t a = UINT64_C(0x5DEECE66D16); + const uint64_t a = UINT64_C(0x5DEECE66D); const unsigned c = 13; const uint64_t mask = UINT64_C(0xFFFFFFFFFFFF); // 48 bits @@ -42,5 +42,5 @@ long nrand48 (unsigned short subi[3]) subi[1] = (x >> 16) & 0xFFFF; subi[2] = (x >> 0) & 0XFFFF; - return x >> 16; + return x >> 17; } -- 2.39.2