From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTP3D-00054L-BJ for qemu-devel@nongnu.org; Wed, 10 Feb 2016 02:19:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTP39-00064I-JA for qemu-devel@nongnu.org; Wed, 10 Feb 2016 02:18:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTP39-00063q-Dw for qemu-devel@nongnu.org; Wed, 10 Feb 2016 02:18:55 -0500 References: <56BA4FA2.1070809@redhat.com> <20160209211359.GK2673@var.home> <20160209211912.GM2673@var.home> From: Thomas Huth Message-ID: <56BAE455.1040909@redhat.com> Date: Wed, 10 Feb 2016 08:18:45 +0100 MIME-Version: 1.0 In-Reply-To: <20160209211912.GM2673@var.home> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Samuel Thibault Cc: zhanghailiang , Li Zhijian , Stefan Hajnoczi , Jason Wang , qemu-devel@nongnu.org, Vasiliy Tolstov , Dave Gilbert , Gonglei , Jan Kiszka , Huangpeng , Guillaume Subiron 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. Thomas