Use pid and ppid to XOR the seed value for random and rand48.