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

René Kijewski notifications at github.com
Wed Aug 21 23:20:29 CEST 2013


> +        /* only MSBs of the array mt[].                        */
> +        /* 2002/01/09 modified by Makoto Matsumoto             */
> +        mt[mti] &= 0xffffffffUL;
> +        /* for >32 bit machines */
> +    }
> +}
> +
> +/**
> + * initialize by an array with array-length
> + * init_key is the array for initializing keys
> + * key_length is its length
> + * slight change for C++, 2004/2/26
> + */
> +void init_by_array(uint32_t init_key[], int key_length)
> +{
> +    int i, j, k;

Please don't use ANSI C. Define the variables in their first occurrence. (Two lines below.)

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


More information about the notifications mailing list