Skip to content

Wrap around in rand_batched_kernel! can lead to repeating patterns #713

@nhz2

Description

@nhz2

MWE:

julia> using GPUArrays, JLArrays, Random

julia> rng = GPUArrays.RNG{JLArray}(42)
GPUArrays.RNG{JLArray}(0x000000000000002a, 0x00000000)

julia> A = JLArray{UInt8}(undef, Int64(2)^34 + 8);

julia> Random.rand!(rng, A);

julia> A[end-7:end] == A[1:8]
true

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