Changeset 2272 for zzuf/trunk


Ignore:
Timestamp:
Apr 12, 2008, 9:44:34 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Set minimal fuzzing ratio to 0.000000001% (less than one bit changed on a whole DVD).
Location:
zzuf/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/fuzz.c

    r1858 r2272  
    112112
    113113            /* Add some random dithering to handle ratio < 1.0/CHUNKBYTES */
    114             todo = (int)((fuzz->ratio * (8 * CHUNKBYTES * 1000)
    115                                              + _zz_rand(1000)) / 1000.0);
     114            todo = (int)((fuzz->ratio * (8 * CHUNKBYTES) * 1000000.0
     115                                + _zz_rand(1000000)) / 1000000.0);
    116116            while(todo--)
    117117            {
  • zzuf/trunk/src/libzzuf.h

    r1743 r2272  
    2626#define DEFAULT_SEED 0
    2727
    28 /* The default fuzzing ratio is, arbitrarily, 0.4% */
     28/* The default fuzzing ratio is, arbitrarily, 0.4%. The minimal fuzzing
     29 * ratio is 0.000000001% (less than one bit changed on a whole DVD). */
    2930#define DEFAULT_RATIO 0.004
    30 #define MIN_RATIO 0.00001
     31#define MIN_RATIO 0.00000000001
    3132#define MAX_RATIO 5.0
    3233
Note: See TracChangeset for help on using the changeset viewer.