Skip to content

Wrong seeding of thread-private RNGs in levelPops() #106

@allegroLeiden

Description

@allegroLeiden

In line 464 of aux.c the thread-private random number generators in levelPops() are seeded by the expression

(int)gsl_rng_uniform(ran)*1e6

This is wrong, because the cast operates before the multiplication, giving a result which is always zero. Correct would be

(int)(gsl_rng_uniform(ran)*1e6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions