Skip to content

Commit

Permalink
bugfix for :mag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjones76 committed Feb 2, 2017
1 parent 2fdc1f9 commit a8a0aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc/randseis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function randseishdr()
setfield!(H, :id, rand(1:2^62))
setfield!(H, :ot, now())
setfield!(H, :loc, [(rand(0.0:1.0:89.0)+rand())*-1.0^(rand(1:2)), (rand(0.0:1.0:179.0)+rand())*-1.0^(rand(1:2)), 50.0*randexp(Float64)])
setfield!(H, :mag, 6.0f0*rand(Float32), randstring(1)[1], randstring(1)[1])
setfield!(H, :mag, (6.0f0*rand(Float32), randstring(1)[1], randstring(1)[1]))
setfield!(H, :int, (UInt8(floor(Int, H.mag[1])), randstring(rand(2:4))))
setfield!(H, :mt, rand(Float64, 8))
setfield!(H, :np, [(rand(), rand(), rand()), (rand(), rand(), rand())])
Expand Down

0 comments on commit a8a0aef

Please sign in to comment.