]> granicus.if.org Git - php/commitdiff
Merge branch 'master' into fix-mt_rand
authorkusano <kusano@users.noreply.github.com>
Tue, 16 Feb 2016 16:00:58 +0000 (01:00 +0900)
committerkusano <kusano@users.noreply.github.com>
Tue, 16 Feb 2016 16:00:58 +0000 (01:00 +0900)
Conflicts:
ext/standard/rand.c

1  2 
ext/standard/rand.c

index 9ec724186ba85a9c78d3fa239cccb5a38b8b2fea,50729f241834e5b9be027999ecaf8709ae932144..13b3dcd518a37fe223087d2940592dffd5c6c44b
@@@ -146,7 -146,7 +146,7 @@@ PHPAPI zend_long php_rand(void
  #define loBits(u)     ((u) & 0x7FFFFFFFU)  /* mask     the highest   bit of u */
  #define mixBits(u, v) (hiBit(u)|loBits(v)) /* move hi bit of u to hi bit of v */
  
- #define twist(m,u,v)  (m ^ (mixBits(u,v)>>1) ^ ((php_uint32)(-(php_int32)(loBit(v))) & 0x9908b0dfU))
 -#define twist(m,u,v)  (m ^ (mixBits(u,v)>>1) ^ ((uint32_t)(-(int32_t)(loBit(u))) & 0x9908b0dfU))
++#define twist(m,u,v)  (m ^ (mixBits(u,v)>>1) ^ ((uint32_t)(-(int32_t)(loBit(v))) & 0x9908b0dfU))
  
  /* {{{ php_mt_initialize
   */