mirror of
https://gittea.dev/nova/th.git
synced 2026-01-30 16:50:10 -05:00
small changes
This commit is contained in:
18
sorting.c
18
sorting.c
@@ -118,19 +118,13 @@ int sort_random(const void *file0, const void *file1){
|
||||
if (!(((file*)file0)->file_type & FILE_TYPE_DIR) && (((file*)file1)->file_type & FILE_TYPE_DIR)) {
|
||||
return 1;
|
||||
}
|
||||
time_t num = (time_t)&seed;
|
||||
time_t i;
|
||||
for (i = num%2; i < 6+(((time_t)&seed)%2); i++){
|
||||
num ^= *seed;
|
||||
if (num%2) {
|
||||
num ^= (time_t)#
|
||||
num ^= num << (i + (((time_t)&seed)%5));
|
||||
} else {
|
||||
num ^= (time_t)&seed;
|
||||
num ^= num >> (i + (((time_t)&num)%5));
|
||||
}
|
||||
time_t num = ((time_t)&sort_random)^((time_t)sort_natural);
|
||||
int i = 1;
|
||||
for (; i < 6; i++) {
|
||||
num += *seed;
|
||||
num ^= num << ((((time_t)&seed)%6)+i);
|
||||
num ^= num >> ((((time_t)&num)%9)+i);
|
||||
}
|
||||
num ^= getpid();
|
||||
|
||||
return ((num%3) - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user