guid fixup

This commit is contained in:
Glenn Maynard
2007-04-24 21:05:45 +00:00
parent f75f71317f
commit b97fa408b5
+1 -1
View File
@@ -91,7 +91,7 @@ RString Profile::MakeGuid()
{ {
RString s; RString s;
s.reserve( GUID_SIZE_BYTES*2 ); s.reserve( GUID_SIZE_BYTES*2 );
char buf[GUID_SIZE_BYTES]; unsigned char buf[GUID_SIZE_BYTES];
CryptManager::GetRandomBytes( buf, GUID_SIZE_BYTES ); CryptManager::GetRandomBytes( buf, GUID_SIZE_BYTES );
for( unsigned i=0; i<GUID_SIZE_BYTES; i++ ) for( unsigned i=0; i<GUID_SIZE_BYTES; i++ )
s += ssprintf( "%02x", buf[i] ); s += ssprintf( "%02x", buf[i] );