From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTPLF-0007y2-1b for qemu-devel@nongnu.org; Wed, 10 Feb 2016 02:37:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTPLA-0003WA-1t for qemu-devel@nongnu.org; Wed, 10 Feb 2016 02:37:36 -0500 Received: from sonata.ens-lyon.org ([140.77.166.138]:40719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTPL9-0003UL-RV for qemu-devel@nongnu.org; Wed, 10 Feb 2016 02:37:31 -0500 Date: Wed, 10 Feb 2016 08:37:27 +0100 From: Samuel Thibault Message-ID: <20160210073727.GI2673@var.home> References: <56BA4FA2.1070809@redhat.com> <20160209211359.GK2673@var.home> <20160209211912.GM2673@var.home> <56BAE455.1040909@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56BAE455.1040909@redhat.com> Subject: Re: [Qemu-devel] [PATCHv7 3/9] slirp: Adding IPv6 UDP support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: zhanghailiang , Li Zhijian , Stefan Hajnoczi , Jason Wang , qemu-devel@nongnu.org, Vasiliy Tolstov , Dave Gilbert , Gonglei , Jan Kiszka , Huangpeng , Guillaume Subiron Thomas Huth, on Wed 10 Feb 2016 08:18:45 +0100, wrote: > On 09.02.2016 22:19, Samuel Thibault wrote: > > Thanks for your reviews so far! I have integrated the rest of comments, > > the only remaining question for patches 1-3 is about srand() and rand(). > > I personally don't mind whether you use rand(), g_random_int_range() or > g_rand_int_range() here, but of course, the ..._range() functions seem > to fit more naturally here. > I just think that if you use rand() or g_random_int_range(), the rng > should be seeded from the main() function, not from the slirp code. Understood, but what do maintainers prefer? I don't mind either way, I just want to write what will be preferred. Samuel