I try to construct static random matrix by using @SMatrix. And @SMatrix randn(ComplexF64,2,2) works. But when try to further seed the random number generator like
using StatsBase
using Statistics
using Random
using StaticArrays
rng = MersenneTwister(123)
@SMatrix randn(rng,ComplexF64,(2,2))
I got the error
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type MersenneTwister