diff options
| author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-01-17 15:14:09 +0000 |
|---|---|---|
| committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-01-17 15:14:09 +0000 |
| commit | 933db72e665f4cae30a2a98b10316ecf93bbc7cf (patch) | |
| tree | e9ca0f128df8390835ae44d059e5c83bdc856ced | |
| parent | bbbde3cd59aefb7638009f0fde5e3c900573f980 (diff) | |
| download | rabbitmq-server-git-933db72e665f4cae30a2a98b10316ecf93bbc7cf.tar.gz | |
Change the guid related entries names in the process dict.
| -rw-r--r-- | src/rabbit_guid.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_guid.erl b/src/rabbit_guid.erl index 5068ad1fcb..262487a5f4 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. |
