XOR the current thread id with the current pid, just to make sure there's no conflict between processes.