Hacker News new | past | comments | ask | show | jobs | submit

Reversing Factorio's RNG

https://gegell.github.io/posts/factorio-rng/
loading story #49733539
loading story #49734965
loading story #49735290
loading story #49733807
loading story #49737958
One of the reasons I dislike boost is in the first code sample. What’s the point of implementing what boils down to a 10 line function (as shown in the decompiled output) like this

    typedef xor_combine_engine<
  xor_combine_engine<
    linear_feedback_shift_engine<uint32_t, 32, 31, 13, 12>, 0,
    linear_feedback_shift_engine<uint32_t, 32, 29, 2, 4>, 0>, 0,
  linear_feedback_shift_engine<uint32_t, 32, 28, 3, 17>, 0> taus88;
loading story #49737119
loading story #49678196
loading story #49734747
loading story #49732871
loading story #49734172
loading story #49734578
loading story #49733720
loading story #49733409
loading story #49732583
loading story #49735977