Oleg's gists
BRANK

Posted on 2019-09-26 by Oleg GrenrusThese are notes of the talk I gave at ClojuTre 2019. There should be a video recording of the talk, I'll add a link here. There's the slide deck as PDF too. This work is licensed under a “CC BY SA 4.0” license.Hello ClojuTre. I'm Oleg from Helsinki.Imagine you are writing a cool new rogue-like game. So cool many have no idea what's going on. A definitive character of rogue-likes is procedural generation of content. You'll need a random number generator for that.SplitMix is a fast, splittable pseudorandom number generator. Being able to split a generator into two independent generators is a property you'll want if you use the generator in a functional programming language. Look it up. We'll concentrate on the being fast part. Obviously you want things to be fast.SplitMix is fast. It does only 9 operations per generated number, one addition to advance the random seed, and xor, shift, multiply xor, shift, multiply, xor and shift. 9 in total.However, …

oleg.fi
Related Topics: