Skip to content

Commit

Permalink
Merge pull request #587 from nHackel/nh/uuid_hash
Browse files Browse the repository at this point in the history
Hash `USER` environment variable during system_uuid fallback
  • Loading branch information
jpsamaroo authored Feb 1, 2025
2 parents 496f68b + 9da6df3 commit a047265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/system_uuid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const SYSTEM_UUIDS = Dict{Int,UUID}()

function system_uuid_fallback()
get!(SYSTEM_UUIDS, myid()) do
username = get(ENV, "USER", "__global")
username = hash(get(ENV, "USER", "__global"))
uuid_file = joinpath(tempdir(), "dagger-system-uuid-$username")
if !isfile(uuid_file)
temp_uuid_file, temp_io = mktemp(; cleanup=false)
Expand Down

0 comments on commit a047265

Please sign in to comment.