Add separate randomness source for interface.

The randomness source should only be accessed from the game such that the sequence of events in the game can be deterministic given an initial seed.
interface: Fix endian header include.