Skip to content

Make sampling from Hypergeometric thread-safe #46

@adomasbaliuka

Description

@adomasbaliuka

This code here says the static variables "should become 'thread_local globals' ". Is there anything preventing just putting _Thread_local in the declaration?

The current version leads to sampling from the hypergeometric distribution (rhyper) being broken when used in a threaded context. I mentioned this previously at JuliaStats/Distributions.jl#1829.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions