summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-01-17 15:14:09 +0000
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-01-17 15:14:09 +0000
commitd229865f237ac90339a32e3e5eca4a0a502d90c0 (patch)
treee9ca0f128df8390835ae44d059e5c83bdc856ced
parente824250c89a1203b9d51868afd4df925e494b1ae (diff)
downloadrabbitmq-server-d229865f237ac90339a32e3e5eca4a0a502d90c0.tar.gz
Change the guid related entries names in the process dict.
-rw-r--r--src/rabbit_guid.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_guid.erl b/src/rabbit_guid.erl
index 5068ad1f..262487a5 100644
--- a/src/rabbit_guid.erl
+++ b/src/rabbit_guid.erl
@@ -104,11 +104,11 @@ gen() ->
gen_secure() ->
%% Here instead of hashing once we hash the GUID and the counter each time,
%% so that the GUID is not predictable.
- G = case get(fast_guid) of
+ G = case get(guid_secure) of
undefined -> {fresh(), 0};
{S, I} -> {S, I+1}
end,
- put(fast_guid, G),
+ put(guid_secure, G),
erlang:md5(term_to_binary(G)).
%% generate a readable string representation of a GUID.