Simple GLib utils


I show a random “tip” in the footer of Odysseus’s homepage, in order to teach people how to use Odysseus better. So this morning I’ll describe the GLib’s pseudorandom number generator.

I don’t really understand this, but it shuffles a pool of randomness using shifts and bitwise-xor operators it has originally sourced from /dev/urandom. Apparently this is implementing the “Mersenne Twister” algorithm. It implements two “versions” and allows setting the “seed” for the sake of testing.

Next I’ll be describing basic WebKit stuff.