X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fprng%2F__rand48_step.c;h=94703d0738d2408326d85b39b3fda14998c035ed;hb=074932c84d34273821e3bfc2511e60a5ce78b8d8;hp=105f810ff017d51e8979b049bae0167ec612a497;hpb=0996faa3d789dd69e4c1c022757f0623908b0df5;p=musl diff --git a/src/prng/__rand48_step.c b/src/prng/__rand48_step.c index 105f810f..94703d07 100644 --- a/src/prng/__rand48_step.c +++ b/src/prng/__rand48_step.c @@ -1,11 +1,11 @@ -#include #include +#include "rand48.h" uint64_t __rand48_step(unsigned short *xi, unsigned short *lc) { uint64_t a, x; - x = xi[0] | xi[1]<<16 | xi[2]+0ULL<<32; - a = lc[0] | lc[1]<<16 | lc[2]+0ULL<<32; + x = xi[0] | xi[1]+0U<<16 | xi[2]+0ULL<<32; + a = lc[0] | lc[1]+0U<<16 | lc[2]+0ULL<<32; x = a*x + lc[3]; xi[0] = x; xi[1] = x>>16;