Skip to content

Commit 0a8a47b

Browse files
committed
Improve type stability
1 parent cd3d27a commit 0a8a47b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using .TagSets:
88
const IDType = UInt64
99

1010
const _INDEX_ID_RNG_KEY = :ITensors_index_id_rng_bLeTZeEsme4bG3vD
11-
index_id_rng() = get!(task_local_storage(), _INDEX_ID_RNG_KEY, Xoshiro())
11+
index_id_rng() = get!(task_local_storage(), _INDEX_ID_RNG_KEY, Xoshiro())::Xoshiro
1212

1313
"""
1414
An `Index` represents a single tensor index with fixed dimension `dim`. Copies of an Index compare equal unless their

0 commit comments

Comments
 (0)