Skip to content

BUG: internal call fix in random.choice - #2827

Closed
certik wants to merge 1 commit into
numpy:maintenance/1.7.xfrom
certik:backport2823
Closed

certik wants to merge 1 commit into
numpy:maintenance/1.7.xfrom
certik:backport2823

Conversation

@certik

@certik certik commented Dec 15, 2012

Copy link
Copy Markdown
Contributor

An random.random call from within mtrand was done by a call to
np.random.random instead of inside the class. This can possibly lead
to non-deterministic results after seeding.

Conflicts:

numpy/random/mtrand/mtrand.c
numpy/random/mtrand/mtrand.pyx

An random.random call from within mtrand was done by a call to
np.random.random instead of inside the class. This can possibly lead
to non-deterministic results after seeding.

Conflicts:

	numpy/random/mtrand/mtrand.c
	numpy/random/mtrand/mtrand.pyx
@certik

certik commented Dec 15, 2012

Copy link
Copy Markdown
Contributor Author

@seberg --- I had to fix a conflict and rename shape -> size. Are we missing some patches in the 1.7 branch?

@certik

certik commented Dec 15, 2012

Copy link
Copy Markdown
Contributor Author

Ok, I see what happened. I have backported your previous patches in #2820, but didn't merge it yet. So this PR needs to be rebased on top of #2820 first. I am simply going to push your fix on top of #2820 and close this one.

@certik

certik commented Dec 15, 2012

Copy link
Copy Markdown
Contributor Author

Cool, I pushed in your patch on top of #2820, so I am closing this one.

@certik certik closed this Dec 15, 2012
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.

1 participant