Skip to content

Commit a047265

Browse files
authored
Merge pull request #587 from nHackel/nh/uuid_hash
Hash `USER` environment variable during system_uuid fallback
2 parents 496f68b + 9da6df3 commit a047265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/system_uuid.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const SYSTEM_UUIDS = Dict{Int,UUID}()
22

33
function system_uuid_fallback()
44
get!(SYSTEM_UUIDS, myid()) do
5-
username = get(ENV, "USER", "__global")
5+
username = hash(get(ENV, "USER", "__global"))
66
uuid_file = joinpath(tempdir(), "dagger-system-uuid-$username")
77
if !isfile(uuid_file)
88
temp_uuid_file, temp_io = mktemp(; cleanup=false)

0 commit comments

Comments
 (0)