give the nightlies a peer id of 0079, to differentiate between the previous stable release (0072) and the next one (0080)

This commit is contained in:
Charles Kerr 2007-07-09 05:40:35 +00:00
parent 8fd06f3687
commit 3a4a0053ca
2 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@
tr_handle_t * tr_init( const char * tag )
{
tr_handle_t * h;
int i, r;
int i;
tr_msgInit();
tr_netResolveThreadInit();
@ -54,24 +54,24 @@ tr_handle_t * tr_init( const char * tag )
/* Generate a peer id : "-TRxxyz-" + 12 random alphanumeric
characters, where xx is the major version number, y is the
minor version number, and z is the maintenance number (Azureus-style) */
snprintf( h->id, sizeof h->id, "-TR%06d-", VERSION_REVISION );
for( i = 10; i < TR_ID_LEN; i++ )
snprintf( h->id, sizeof h->id, "-TR%02d%01d%01d-",
VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE );
for( i=8; i<TR_ID_LEN; ++i )
{
r = tr_rand( 36 );
const int r = tr_rand( 36 );
h->id[i] = ( r < 26 ) ? ( 'a' + r ) : ( '0' + r - 26 ) ;
}
tr_dbg( "Transmission ID is [%s]", h->id );
/* Random key */
for( i = 0; i < TR_KEY_LEN; i++ )
for( i=0; i < TR_KEY_LEN; ++i )
{
r = tr_rand( 36 );
const int r = tr_rand( 36 );
h->key[i] = ( r < 26 ) ? ( 'a' + r ) : ( '0' + r - 26 ) ;
}
/* Azureus identity */
for( i = 0; i < TR_AZ_ID_LEN; i++ )
for( i=0; i < TR_AZ_ID_LEN; ++i )
{
h->azId[i] = tr_rand( 0xff );
}

View File

@ -4,7 +4,7 @@
MAJOR=0
MINOR=7
MAINT=2
MAINT=9
STRING=0.80-svn
# Get current SVN revision from Ids in all source files