Skip to content

Commit

Permalink
avoid @eval when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Feb 8, 2024
1 parent cb07600 commit 5381803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JET.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ function compute_hash(objs...)
return _compute_hash(objs...)
end
_compute_hash(o, objs...) = hash(o, _compute_hash(objs...))
_compute_hash() = @static UInt === UInt64 ? 0xa49bd446c0a5d90e : 0xe45361ac
let hash_seed = rand(UInt)
global _compute_hash() = hash_seed
end

# state

Expand Down

0 comments on commit 5381803

Please sign in to comment.