Support for direct seeding

The old code only allowed seeding via SHA-256. This is suboptimal
if the source is already hashed. Added a way to directly add random
events.