Skip to content

Commit

Permalink
Merge pull request #227 from JuliaLang/kf/notwhatyouthoughttheydid
Browse files Browse the repository at this point in the history
These tests didn't do what you thought they did
  • Loading branch information
quinnj authored Oct 27, 2020
2 parents a5f62eb + aac2353 commit d371375
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ let
entropy = MbedTLS.Entropy()

function entropy_func(buf)
rng = RandomDevice()
buf[:] = rand(rng, UInt8, length(buf))
buf[:] = rand(RandomDevice(), UInt8, length(buf))
return Cint(length(buf))
end

Expand Down Expand Up @@ -134,8 +133,7 @@ let
entropy = MbedTLS.Entropy()

function entropy_func(buf)
rng = RandomDevice()
buf[:] = rand(rng, UInt8, length(buf))
buf[:] = rand(RandomDevice(), UInt8, length(buf))
return Cint(length(buf))
end

Expand Down

0 comments on commit d371375

Please sign in to comment.