Do not fallback on unsafe seed data for the PRNG

Seeding OpenSSL's PRNG with the output of rand() isn't safe. It's better to
abort early than to continue with unsafe entropy.

Also write out a new randseed file on a deinitialization, and free our error
strings.