Skip to content

Conversation

@freeman-lab
Copy link
Contributor

Change maximum value for default seed during RDD sampling so that it is strictly less than 2 ** 32. This prevents a bug in the most recent version of NumPy, which cannot accept random seeds above this bound.

Adds an extra test that uses the default seed (instead of setting it manually, as in the docstrings).

@mengxr

- Fixes bug in NumPy v1.9 which truncates random seeds larger than or
equal to 2 ** 32
- Add an extra test for sampling with default seed
@SparkQA
Copy link

SparkQA commented Oct 22, 2014

QA tests have started for PR 2889 at commit dc385ef.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Oct 22, 2014

QA tests have finished for PR 2889 at commit dc385ef.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/22025/
Test PASSed.

@mengxr
Copy link
Contributor

mengxr commented Oct 22, 2014

LGTM. Merged into master. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants