Skip to content

Commit 2300ab9

Browse files
authored
Change uuid to a string in all locations. (#973)
additionally, the call to repr is no longer required.
1 parent 2fc4b0e commit 2300ab9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/init.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Random: seed!
44
# don't alter the user-visible random state (issue #336)
55
const IJulia_RNG = seed!(Random.MersenneTwister(0))
66
import UUIDs
7-
uuid4() = repr(UUIDs.uuid4(IJulia_RNG))
7+
uuid4() = string(UUIDs.uuid4(IJulia_RNG))
88

99
const orig_stdin = Ref{IO}()
1010
const orig_stdout = Ref{IO}()

src/msg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mutable struct Msg
1515
end
1616
end
1717

18-
msg_header(m::Msg, msg_type::String) = Dict("msg_id" => string(uuid4()),
18+
msg_header(m::Msg, msg_type::String) = Dict("msg_id" => uuid4(),
1919
"username" => m.header["username"],
2020
"session" => m.header["session"],
2121
"date" => now(),

0 commit comments

Comments
 (0)