Skip to content

@SVector rand and randn don't work with rng argument #391

Closed
@tpapp

Description

@tpapp

Eg

julia> @SVector randn(Base.Random.GLOBAL_RNG, 5)
ERROR: TypeError: Type: in parameter, expected Type, got MersenneTwister

I looked at the macro and realized it may be tricky to do make this work, but a performant workaround would also help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurefeatures and feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions