Skip to content

Commit

Permalink
add a test for reading 128 bit ints from RandomDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and tkelman committed Dec 5, 2015
1 parent b0cf837 commit 358f2ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ let mt = MersenneTwister()
end
end

# make sure reading 128-bit ints from RandomDevice works
let a = [rand(RandomDevice(), UInt128) for i=1:10]
@test reduce(|, a)>>>64 != 0
end

# test all rand APIs
for rng in ([], [MersenneTwister()], [RandomDevice()])
for f in [rand, randn, randexp]
Expand Down

0 comments on commit 358f2ef

Please sign in to comment.