Skip to content

Commit 1f1e96f

Browse files
committed
No need to use Random string for the list of types in loop, just use T1,T2,T3,...
1 parent 87cddb8 commit 1f1e96f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1212
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
1313
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1414
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
15-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1615
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1716
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1817
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
@@ -45,7 +44,6 @@ EllipsisNotation = "1.8"
4544
ForwardDiff = "^0.10.18"
4645
KernelAbstractions = "0.9.1"
4746
LoggingExtras = "1.1"
48-
Random = "1.11.0"
4947
Reexport = "^1.2.2"
5048
Requires = "1.3"
5149
StaticArrays = "^1.1.0"

src/util.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ grab!(sym,ex::Symbol) = union!(sym,[ex]) # grab symbol name
170170
grab!(sym,ex) = nothing
171171
rep(ex) = ex
172172
rep(ex::Expr) = ex.head == :. ? Symbol(ex.args[2].value) : ex
173-
using Random
174-
symtypes(sym) = [Symbol.(Random.randstring('A':'Z',4)) for _ in 1:length(sym)]
173+
symtypes(sym) = [Symbol(:T,i) for i in 1:length(sym)]
175174
joinsymtype(sym::Symbol,symT::Symbol) = Expr(:(::), sym, symT)
176175
joinsymtype(sym,symT) = zip(sym,symT) .|> x->joinsymtype(x...)
177176

0 commit comments

Comments
 (0)