From: RĂ©mi Denis-Courmont Date: Sat, 6 Mar 2010 07:50:10 +0000 (+0200) Subject: nrand48: small fixes X-Git-Tag: 1.1.0-pre1~484 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=df9356f54bd6396447e2a465b8efda2fdbd21147;p=vlc nrand48: small fixes --- 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; }