Ignore:
Timestamp:
Aug 14, 2008, 11:11:25 AM (13 years ago)
Author:
muks
Message:

Replace random number generation code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r6496 r6517  
    3838#include "utils.h"
    3939#include "web.h"
     40#include "crypto.h"
    4041
    4142/* Generate a peer id : "-TRxyzb-" + 12 random alphanumeric
     
    5657
    5758    for( i=8; i<19; ++i ) {
    58         val = tr_rand( base );
     59        val = tr_cryptoRandInt( base );
    5960        total += val;
    6061        buf[i] = pool[val];
Note: See TracChangeset for help on using the changeset viewer.