title: How to generate an OAuth nonce in android?
body: <p>To generate a OAuth nonce in android I tried - </p>
  
  <pre><code>                byte[] nonce = new byte[16];
  
                  try {
                      rand = SecureRandom.getInstance("SHA1PRNG");
                  } catch (NoSuchAlgorithmException e) {
                      e.printStackTrace();
                  }
  
                  String oauth_nonce = rand.toString();
  
                  Log.d("nonce value", oauth_nonce);
  </code></pre>
  
  <p>It gives something like - <code>java.security.SecureRandom@58957gy8</code></p>
  
  <p>Is this the correct way to generate a nonce ? If no, can you suggest a correct way ?</p>