From 0bb9d575d4c9609693d71fa47f8958af10f40d2b Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 10 Jul 2015 11:02:22 -0400 Subject: [PATCH] 6438: Use urandom instead of md5(hostname) for UUID. Avoid using Ruby at this stage. --- .../install-manual-prerequisites.html.textile.liquid | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/install/install-manual-prerequisites.html.textile.liquid b/doc/install/install-manual-prerequisites.html.textile.liquid index 420c12a7e8..de8f8cb9e0 100644 --- a/doc/install/install-manual-prerequisites.html.textile.liquid +++ b/doc/install/install-manual-prerequisites.html.textile.liquid @@ -81,11 +81,12 @@ Retrieve the package list: h2. A unique identifier -Each Arvados installation should have a globally unique identifier, which is a unique 5-character alphanumeric string. Here is a snippet of ruby that generates such a string based on the hostname of your computer: +Each Arvados installation should have a globally unique identifier, which is a unique 5-character lowercase alphanumeric string. For testing purposes, here is one way to make a random 5-character string: -
-Digest::MD5.hexdigest(`hostname`).to_i(16).to_s(36)[0..4]
-
+ +
~$ tr -dc 0-9a-z </dev/urandom | head -c5; echo
+
+
You may also use a different method to pick the unique identifier. The unique identifier will be part of the hostname of the services in your Arvados cluster. The rest of this documentation will refer to it as your @uuid_prefix@. -- 2.30.2