def mkNonce(when=None):
 salt = cryptutil.randomString(6, NONCE_CHARS)
 if (when is None):
  t = gmtime()
 else:
  t = gmtime(when)
 time_str = strftime(time_fmt, t)
 return (time_str + salt)

def mkNonce ( when = None ) : salt = cryptutil . randomString ( 6 , NONCE_CHARS ) if ( when is None ) : t = gmtime ( ) else : t = gmtime ( when ) time_str = strftime ( time_fmt , t ) return ( time_str + salt )
generate a nonce with the current timestamp .