View Single Post
Old 05-14-2004, 12:48 PM   #5 (permalink)
Amaranthine
Registered User
 
Amaranthine's Avatar
 
Join Date: May 2004
Posts: 47
Amaranthine is on a distinguished road
Thanks, I had always thought that |= was the xor assignment, when I switched it over to ^= it worked correctly.

If you care to see, here are my two added/edited lines:
Code:
encrypted += buffer[i] ^= static_cast<char>(m_Seed);
delete[] buffer;
(thanks for reminding me to free up the space with delete[])
Now I can go through and search for possible optimizations.

Last edited by Amaranthine; 05-14-2004 at 03:10 PM.
Amaranthine is offline   Reply With Quote