Changeset 2305
- Timestamp:
- Jul 9, 2007, 4:34:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/transmission.c
r2202 r2305 55 55 characters, where xx is the major version number, y is the 56 56 minor version number, and z is the maintenance number (Azureus-style) */ 57 snprintf( h->id, sizeof h->id, "-TR%0 2d%01d%01d-",58 VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE ); 59 for( i = 8; i < TR_ID_LEN; i++ )57 snprintf( h->id, sizeof h->id, "-TR%06d-", VERSION_REVISION ); 58 59 for( i = 10; i < TR_ID_LEN; i++ ) 60 60 { 61 61 r = tr_rand( 36 ); 62 62 h->id[i] = ( r < 26 ) ? ( 'a' + r ) : ( '0' + r - 26 ) ; 63 63 } 64 tr_dbg( "Transmission ID is [%s]", h->id ); 64 65 65 66 /* Random key */
Note: See TracChangeset
for help on using the changeset viewer.