rem: for (unsigned char* i = ret.begin()+len; i != ret.end(); ++i) *i = rand();
add: const int len2 = std::find(s.fingerprint, s.fingerprint+4, 0) - s.fingerprint; std::copy(s.fingerprint, s.fingerprint+len2, ret.begin()+len);   std::fill(ret.begin()+len+len2, ret.begin()+len+len2+3, 0);   for (unsigned char* i = ret.begin()+len+len2+3; i != ret.end(); ++i) { *i = rand(); }
context: 	peer_id generate_peer_id()	{		peer_id ret;		std::srand(std::time(0));		// TODO: add ability to control fingerprint		unsigned char fingerprint[] = "lt.\0\0\0\0\0\0\0";//		unsigned char fingerprint[] = "lt.\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";		const int len = sizeof(fingerprint)-1;		std::copy(fingerprint, fingerprint+len, ret.begin());		for (unsigned char* i = ret.begin()+len; i != ret.end(); ++i) *i = rand();		return ret;	}