Changeset 1671 for zzuf


Ignore:
Timestamp:
Jan 14, 2007, 9:47:18 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Oops, ratio should be a double, not a float.
Location:
zzuf/trunk/src
Files:
4 edited

Legend:

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

    r1668 r1671  
    5555
    5656static int32_t seed = DEFAULT_SEED;
    57 static float   ratio = DEFAULT_RATIO;
     57static double  ratio = DEFAULT_RATIO;
    5858static int     autoinc = 0;
    5959
     
    7575}
    7676
    77 void _zz_setratio(float r)
     77void _zz_setratio(double r)
    7878{
    7979    if(r < MIN_RATIO)
  • zzuf/trunk/src/fd.h

    r1663 r1671  
    2020extern void _zz_exclude(char const *);
    2121extern void _zz_setseed(int32_t);
    22 extern void _zz_setratio(float);
     22extern void _zz_setratio(double);
    2323extern void _zz_setautoinc(void);
    2424extern void _zz_fd_init(void);
  • zzuf/trunk/src/libzzuf.h

    r1668 r1671  
    3737{
    3838    uint32_t seed;
    39     float ratio;
     39    double ratio;
    4040    int cur;
    4141#ifdef HAVE_FGETLN
  • zzuf/trunk/src/zzuf.c

    r1670 r1671  
    8383static uint32_t seed = DEFAULT_SEED;
    8484static uint32_t endseed = DEFAULT_SEED + 1;
    85 static float ratio = DEFAULT_RATIO;
    86 static float endratio = DEFAULT_RATIO;
     85static double ratio = DEFAULT_RATIO;
     86static double endratio = DEFAULT_RATIO;
    8787static int quiet = 0;
    8888static int maxbytes = -1;
     
    444444{
    445445    static int const files[] = { DEBUG_FILENO, STDERR_FILENO, STDOUT_FILENO };
    446     char buf[BUFSIZ];
     446    char buf[64];
    447447    int fd[3][2];
    448448    int64_t now = _zz_time();
Note: See TracChangeset for help on using the changeset viewer.