nsCRT::memset(rand_buf1, 0, randLen-1); nsCRT::memset(rand_buf2, 0, randLen-1);
memset(rand_buf1, 0, randLen-1); memset(rand_buf2, 0, randLen-1);
mime_gen_content_id(PRUint32 aPartNum, const char *aEmailAddress){  PRInt32           randLen = 5;  unsigned char     rand_buf1[5];   unsigned char     rand_buf2[5];   const char        *domain = nsnull;  const char        *defaultDomain = "@netscape.com";  nsCRT::memset(rand_buf1, 0, randLen-1);  nsCRT::memset(rand_buf2, 0, randLen-1);  GenerateGlobalRandomBytes(rand_buf1, randLen);  GenerateGlobalRandomBytes(rand_buf2, randLen);  // Find the @domain.com string...  if (aEmailAddress && *aEmailAddress)    domain = NS_CONST_CAST(const char*, PL_strchr(aEmailAddress, '@'));  if (!domain)    domain = defaultDomain;  char *retVal = PR_smprintf("part%d."                              "%02X%02X%02X%02X"                              "."                              "%02X%02X%02X%02X"                              "%s",                              aPartNum,                              rand_buf1[0], rand_buf1[1], rand_buf1[2], rand_buf1[3],                              rand_buf2[0], rand_buf2[1], rand_buf2[2], rand_buf2[3],                              domain);  return retVal;}