News for hackers. Stuff that matters.
Re:14 Character Random Number Generator in C by Someone on Wednesday February 08, 2017 @03:13PM (#13601591)
That can be made shorter:

  x+=x*x+9;
Are you sure you don't mean

  x+=((x*x+9)>>32);
(and does that need the outer parentheses?) I doubt the first passes dieharder, as (if my C isn't too rusty) it alternates between odd and even numbers.
Re:14 Character Random Number Generator in C by eutectic on Wednesday February 08, 2017 @04:06PM (#13602103)
I mean you assign the value of the expression to your result.

e.g:

    uint64_t x = 0;
    ...
    uint32_t y = (x+=x*x+9)>>32;