git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9104 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2012-11-26 16:43:50 +00:00
parent 34390e058f
commit cb3475086e

View File

@ -118,8 +118,10 @@ void RanPark::reset(int ibase, double *coord)
hash += (hash << 15); hash += (hash << 15);
// keep 31 bits of unsigned int as new seed // keep 31 bits of unsigned int as new seed
// do not allow seed = 0, since will cause hang in gaussian()
seed = hash & 0x7ffffff; seed = hash & 0x7ffffff;
if (!seed) seed = 1;
// warm up the RNG // warm up the RNG