diff --git a/src/AUTHORS b/src/AUTHORS index 7805af9..640ffec 100644 --- a/src/AUTHORS +++ b/src/AUTHORS @@ -1,6 +1,7 @@ iperf3 is a complete rewrite of iperf2, with a goal of making the -code smaller and easier to maintain. +code smaller and easier to maintain, and to support a client library +verion of the functionality. Main designer: Jon Dugan, ESnet diff --git a/src/iperf_api.c b/src/iperf_api.c index a3b5126..07bf48c 100644 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -768,9 +768,9 @@ iperf_new_stream(struct iperf_test * testp) sp->result = (struct iperf_stream_result *) malloc(sizeof(struct iperf_stream_result)); /* fill in buffer with random stuff */ - /* XXX: probably better to use something truely random here */ + srandom (time(0)); for (i = 0; i < testp->default_settings->blksize; i++) - sp->buffer[i] = i % 255; + sp->buffer[i] = random(); sp->socket = -1;