Ignore:
Timestamp:
07/06/12 17:07:48 (11 years ago)
Author:
nit
Message:

[titan] add random funktion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/playlist.h

    r16662 r16991  
    518518        if(maxfiles < 1) return NULL;
    519519
    520         srand(time(NULL));
    521         int r = rand() % maxfiles;
     520        int r = getrandom(maxfiles);
    522521        r++;
    523522
     
    557556        if(max < 1) return NULL;
    558557
    559         srand(time(NULL));
    560         int r = rand() % max;
     558        int r = getrandom(max);
    561559        r++;
    562560
Note: See TracChangeset for help on using the changeset viewer.