title: Generating unique keys using RandomStringUtils of apache commons
body: <p>Please find the below code which I've used to generate random strings using <i><b>RandomStringUtils</b></i> of apache commons.</p>
  
  <pre><code>String key = RandomStringUtils.random(5, String.valueOf(System.currentTimeMillis()));
  </code></pre>
  
  <p>I am limiting the key to 5 characters. My purpose is generating unique keys for each records when I'm inserting a new record to DB. Will the above code be suitable for corresponding task and could I be assured that I will get a unique key from the above code each time inserting a new record.</p>