Ignore:
Timestamp:
Jan 9, 2017, 11:09:38 AM (3 years ago)
Author:
jrpelegrina
Message:

Update new version: 3.15.02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • filezilla/trunk/fuentes/src/putty/sshrand.c

    r130 r3185  
    4646};
    4747
     48int random_active = 0;
     49
     50#ifdef FUZZING
     51/*
     52 * Special dummy version of the RNG for use when fuzzing.
     53 */
     54void random_add_noise(void *noise, int length) { }
     55void random_add_heavynoise(void *noise, int length) { }
     56void random_ref(void) { }
     57void random_unref(void) { }
     58int random_byte(void)
     59{
     60    return 0x45; /* Chosen by eight fair coin tosses */
     61}
     62void random_get_savedata(void **data, int *len) { }
     63#else /* !FUZZING */
    4864static struct RandPool pool;
    49 int random_active = 0;
    5065long next_noise_collection;
    5166
     
    327342    random_stir();
    328343}
     344#endif
Note: See TracChangeset for help on using the changeset viewer.