fix random seed generation for single thread

When there is only one thread, RANK=0 and the random seed is always constant. RANK+1 fixes this for the one thread case.