Improved prng
Fixed PRNG not seeding