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.
Merge pull request #7 from cvondrick/patch-1

fix random seed generation for single thread