fix MakeGuid returns garbage

This commit is contained in:
Glenn Maynard
2007-04-17 20:19:08 +00:00
parent c7ae4a052b
commit 565558fb6d
+1 -1
View File
@@ -89,7 +89,7 @@ void Profile::InitEditableData()
RString Profile::MakeGuid()
{
RString s;
s.resize( GUID_SIZE_BYTES );
s.reserve( GUID_SIZE_BYTES*2 );
char buf[GUID_SIZE_BYTES];
CryptManager::GetRandomBytes( buf, GUID_SIZE_BYTES );
for( unsigned i=0; i<GUID_SIZE_BYTES; i++ )