title: generate a boost.uuid from a boost.path string
body: <p>I'm working in a manager class, that holds string representing paths. From this strings, I'd like to have a boost.uuid using a code like this:</p>
  
  <pre><code>m_log-&gt;addMessage("Generating UUID from path",ZEL_APPENDER,LOGLEVEL_DEBUG);
  boost::uuids::string_generator str_gen;
  boost::uuids::uuid generatedUUID = str_gen(full_path);
  
  assert(generatedUUID.is_nil() == false);
  char msg[500];
  snprintf(msg,500,"Successfully generated UUID %s from path",boost::uuids::to_string(generatedUUID).c_str());
  m_log-&gt;addMessage(msg,ZEL_APPENDER,LOGLEVEL_DEBUG);
  </code></pre>
  
  <p>But unfortunatelly, I found that generated string is always the same, even if full_path is diferent. </p>
  
  <p>Also, when I try with an ultra simple example like this:</p>
  
  <pre><code> string s1("helloworld");
   boost::uuids::string_generator str_gen;
   boost::uuids::uuid generatedUUID = str_gen(s1);
   cout &lt;&lt; "s1: " &lt;&lt; boost::uuids::to_string(generatedUUID) &lt;&lt; endl;
  </code></pre>
  
  <p>Boost throws a runtime exception saying that string is invalid. Could you help me? The only source of documentation I've found is <a href="http://www.boost.org/doc/libs/1_45_0/libs/uuid/uuid.html#boost/uuid/string_generator.hpp" rel="nofollow">here</a></p>
  
  <p>Thanks in advance.</p>