Skip to content

Commit

Permalink
Add a new source for seeding Xorshift.
Browse files Browse the repository at this point in the history
svn-id: r585
  • Loading branch information
bcressey committed Dec 27, 2011
1 parent e9a3f93 commit 1ae447f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tads/osansi3.c
Expand Up @@ -82,7 +82,7 @@ void xorinit(void)
{
seed[0] = time(NULL);
seed[1] = seed[0] << 1;
seed[2] = seed[0] & seed[1];
seed[2] = getpid();
seed[3] = seed[1] & ~seed[2];
xorshift();
}
Expand Down

0 comments on commit 1ae447f

Please sign in to comment.