git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9104 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user