Add a good PRNG (mersenne twister) for cctools.

NOTE: this is not a CSPRNG.
Includes some useful helper functions.
Replaces the old random_init.[ch]. srand is still seeded.