[riot-notifications] [RIOT] add mersene twister (#168)

René Kijewski notifications at github.com
Wed Aug 21 23:14:17 CEST 2013


> +
> +    y = mt[mti++];
> +
> +    /* Tempering */
> +    y ^= (y >> 11);
> +    y ^= (y << 7) & 0x9d2c5680UL;
> +    y ^= (y << 15) & 0xefc60000UL;
> +    y ^= (y >> 18);
> +
> +    return y;
> +}
> +
> +/**
> + * generates a random number on [0,0x7fffffff]-interval
> + */
> +long genrand_int31(void)

Useless.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/168/files#r5909353
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130821/b80b5028/attachment.html>


More information about the notifications mailing list