diff --git a/Project.toml b/Project.toml index 7de5d36..e8fb51f 100644 --- a/Project.toml +++ b/Project.toml @@ -5,7 +5,6 @@ version = "1.5.0" [deps] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [weakdeps] diff --git a/ext/AbstractFFTsTestExt.jl b/ext/AbstractFFTsTestExt.jl index f953c20..b2fc00f 100644 --- a/ext/AbstractFFTsTestExt.jl +++ b/ext/AbstractFFTsTestExt.jl @@ -6,7 +6,6 @@ using AbstractFFTs using AbstractFFTs: TestUtils using AbstractFFTs.LinearAlgebra using Test -import Random # Ground truth x_fft computed using FFTW library const TEST_CASES = ( @@ -77,7 +76,7 @@ end function TestUtils.test_plan_adjoint(P::AbstractFFTs.Plan, x::AbstractArray; real_plan=false, copy_input=false, test_wrappers=true) _copy = copy_input ? copy : identity - y = Random.rand!(P * _copy(x)) + y = map(a -> rand(typeof(a)), P * _copy(x)) # generically construct rand array # test basic properties @test_skip eltype(P') === typeof(y) # (AbstractFFTs.jl#110) @test (P')' === P # test adjoint of adjoint