Wireshark-dev: Re: [Wireshark-dev] does the use a reliable rand pkt generator would makes sense
From: Evan Huus <[email protected]>
Date: Sat, 12 Oct 2013 12:20:48 -0400
On Fri, Oct 11, 2013 at 1:25 PM, Toralf Förster <[email protected]> wrote:
> While uploading a 5 MB rand pkt file to bug
> https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9264
> I was wondering if it is really needed to upload such files - or - if it
> would be possible to add only the "seed" of the random funtion to the
> bug (report assuming, that given the seed the same rand pkt file can be
> identically created later at another system).

Unfortunately you do usually need to upload the file - srand and rand
can have different implementations on different systems or even just
with different versions of libc on the same system, so the seed
doesn't guarantee the ability to recreate the file.