Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Random number generator bug when seeded #921

Closed
CatchemAL opened this issue Sep 29, 2017 · 3 comments
Closed

Random number generator bug when seeded #921

CatchemAL opened this issue Sep 29, 2017 · 3 comments
Labels
Milestone

Comments

@CatchemAL
Copy link
Collaborator

CatchemAL commented Sep 29, 2017

var rng1 = ZigguratNormalGenerator();
var num1 = rng1.Generate(); // works

var rng2 = ZigguratNormalGenerator(seed: 2);
var num2 = rng2.Generate(); // doesn't 
@cesarsouza
Copy link
Member

cesarsouza commented Sep 29, 2017

Hi @AlexJCross,

Thanks a lot for opening the issue! I can take a look at it, unless you already have the fix prepared!

Regards,
Cesar

@cesarsouza
Copy link
Member

cesarsouza commented Sep 29, 2017

Too fast! :-)

cesarsouza added a commit that referenced this issue Sep 29, 2017
GH-921: Fix for the normal random number generator when a seed is specified
@cesarsouza cesarsouza added this to the 3.8 milestone Oct 22, 2017
@cesarsouza
Copy link
Member

Added in 3.8.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants