code: private static synchronized SecureRandom getSecRnd()
    throws NoSuchAlgorithmException,
           NoSuchProviderException
    {
      if (secRnd == null)
      {
        secRnd = SecureRandom.getInstance("SHA1PRNG");
        byte[] bytes = new byte[10];
        secRnd.nextBytes(bytes);
      }
      return secRnd;
    }
docs: /*
  getSecRnd
  Gets a random number for encryption purposes.