title: Representing a string uniquely using hashCode
body: <p>I am trying to create a zookeeper node with unix path as values(like <code>/x/home/rrs/data0</code>) , but this is not allowed.</p>
  
  <p>So I thought of generating a hash code of path and then use it to create a node. 
  But I read following about the hashcode:</p>
  
  <ul>
  <li>Hash should not be used in a distributed application.</li>
  <li>There might be collisions, For example, the Strings "Aa" and "BB" produce the same hashCode: 2112</li>
  </ul>
  
  <p>Should i go ahead with hash code or What other options i have for my use case?</p>
  
  <p>Also if i keep the string same all the time , is it guaranteed to generate <strong>same hashCode</strong> every time?</p>