Changeset 16991
- Timestamp:
- 07/06/12 17:07:48 (11 years ago)
- Location:
- titan
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/catcatch/catcatch.h
r16964 r16991 1 1 #ifndef CATCATCH_H 2 2 #define CATCATCH_H 3 4 int getrandom(int max)5 {6 srand(time(NULL));7 return (rand() % max);8 }9 3 10 4 int checktreffer(int nr, int* sum, int* cat, int* value) -
titan/titan/filelist.h
r16957 r16991 733 733 if(maxfiles < 1) return NULL; 734 734 735 srand(time(NULL)); 736 int r = rand() % maxfiles; 735 int r = getrandom(maxfiles); 737 736 r++; 738 737 -
titan/titan/global.h
r16960 r16991 1 1 #ifndef GLOBAL_H 2 2 #define GLOBAL_H 3 4 int getrandom(int max) 5 { 6 srand(time(NULL)); 7 return (rand() % max); 8 } 3 9 4 10 //check if swap is in flash(1) or not(0) -
titan/titan/header.h
r16922 r16991 522 522 523 523 //global.h 524 int getrandom(int max); 524 525 int clearbit(int value, int bitpos); 525 526 int checkbit(int value, int bitpos); -
titan/titan/mediadb.h
r16923 r16991 72 72 struct mediadbfilter *node = mediadbfilter; 73 73 74 srand(time(NULL)); 75 int r = rand() % maxentry; 74 int r = getrandom(maxentry); 76 75 r++; 77 76 -
titan/titan/playlist.h
r16662 r16991 518 518 if(maxfiles < 1) return NULL; 519 519 520 srand(time(NULL)); 521 int r = rand() % maxfiles; 520 int r = getrandom(maxfiles); 522 521 r++; 523 522 … … 557 556 if(max < 1) return NULL; 558 557 559 srand(time(NULL)); 560 int r = rand() % max; 558 int r = getrandom(max); 561 559 r++; 562 560
Note: See TracChangeset
for help on using the changeset viewer.