ugly hack to support 32bit pids.

clean up later.
simplify seed generation.

this seems good enough