verified that the xorshift rng works properly. Getting some strange segfaults...