GitHub user mengxr opened a pull request:
https://github.com/apache/incubator-spark/pull/645
SPARK-1129: use a predefined seed when seed is zero in XORShiftRandom
If the seed is zero, XORShift generates all zeros, which would create
unexpected result.
JIRA: https://spark-project.atlassian.net/browse/SPARK-1129
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mengxr/incubator-spark xor
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-spark/pull/645.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #645
----
commit 51f4050430a6627f979e4b044e6614c667931212
Author: Xiangrui Meng <[email protected]>
Date: 2014-02-25T02:08:07Z
use a predefined seed when seed is zero in XORShiftRandom
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---