From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2gvp-0005Qj-7M for qemu-devel@nongnu.org; Mon, 24 Apr 2017 12:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2gvm-00031s-4I for qemu-devel@nongnu.org; Mon, 24 Apr 2017 12:33:45 -0400 Received: from mout.web.de ([212.227.15.14]:56910) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2gvl-00031P-QG for qemu-devel@nongnu.org; Mon, 24 Apr 2017 12:33:42 -0400 References: <20170424125016.GM20809@redhat.com> <20170424133624.GP20809@redhat.com> <20170424135749.GR20809@redhat.com> <20170424154117.GB7705@redhat.com> <20170424155255.GD7705@redhat.com> From: Geert Martin Ijewski Message-ID: Date: Mon, 24 Apr 2017 18:33:26 +0200 MIME-Version: 1.0 In-Reply-To: <20170424155255.GD7705@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] error: qcrypto_random_bytes() tried to read from /dev/[u]random, even on windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , Peter Maydell Cc: QEMU Developers > We can have the existing qcrypto_init() call a qcrypto_random_init() > method to do the one-time initialization task, since that's already > required to run early in order to initialize gnutls when we use it. Wouldn't it make sense to also move the unix initalization to that function? And what about deinitalization? Though because that handle needs to stay valid throughout the whole lifetime of QEMU anyway, that probably can be ignored and taken care of by the OS Regards, Geert