From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A431A00C2; Wed, 22 Apr 2020 10:28:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC2041D15F; Wed, 22 Apr 2020 10:28:45 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80075.outbound.protection.outlook.com [40.107.8.75]) by dpdk.org (Postfix) with ESMTP id 998A81D159 for ; Wed, 22 Apr 2020 10:28:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FErGwKb0/PkM+rlOX15MpnEVU1zRoVaY5/lhEonMkinrRSNtl32ld9QAljvZTVXxYY9+uZGWJr9t0fHInDAvkTGrT2LjKidy57vXBw7SgRcLWmKjv7mCMRfzYw7BgP5CVUTxWs8QX+LBnY1pWJx6K22X3BDBDD7urOs+ktHmzQcd6AXdrNSLXNASQWJBJy35HplLXPdw7f3ZrruJElZIhF1BIhJVJ3SuqbHj7p4feHAR8K7P2g6KxUrYb/NVcbAGRgvodQQf862ABrkMDbYnpsxw1c5QRfP8N8pzFATjJN8bNoDXl8TXyxLQtAPfkWwzMDMyuiQVSRMzQXiLwHr0yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yveQne7uRuRr++rHXlxZOqFSVwrQKooAg2aoCBgG1DY=; b=fyGBB4dlW8TwrQuuyqhpIAWuWqLgoxF4CcxrEwOJIF+KzOAJfLePmNTZla5tKjkUWOK6eZOb+/YUH+zObBbWSWcA0Te+eNggOYgzv5PUgOjQnKzhvjnjVFSAJCbog1+7ySzyAUBw6rN1Lj5jE9S7cFAKI+fkl4AoZVhrPE4HmTO/bm4QvGsmE1MMlj1L8o1IdFTEs8otEQe3DGHrTgydBuy4YTvU7GaWMwPQIfLUEEtPAhcSodEd6gzk+wrbmNq/6wlvBkfCSEGcg9o862ZfLEMg4VzNPS3Byi4WxWoI2Hz5uUeuNXdfe1164cnsGfFC0U2eTxrgwEjeOciJfylf1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yveQne7uRuRr++rHXlxZOqFSVwrQKooAg2aoCBgG1DY=; b=oyJDrNmtFY/AcRVcE7Bplm7Jf9FC/pLY6lqOg+S3FSSyAsvbhaKnHPfVxJu1RAtDLieJFF86Dv4DW/2wLGQL61IjTOsDRY6Fi7yjFPZIwLx77UTyPCd8IeiEEeZ8d47w15++dZhJa+/T/hGErQPZOewTXIlrOnf9wIY+3KvbOOU= Received: from HE1PR07MB4284.eurprd07.prod.outlook.com (2603:10a6:7:9f::29) by HE1PR07MB4444.eurprd07.prod.outlook.com (2603:10a6:7:a0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.10; Wed, 22 Apr 2020 08:28:43 +0000 Received: from HE1PR07MB4284.eurprd07.prod.outlook.com ([fe80::542b:7b22:1f38:d985]) by HE1PR07MB4284.eurprd07.prod.outlook.com ([fe80::542b:7b22:1f38:d985%5]) with mapi id 15.20.2937.012; Wed, 22 Apr 2020 08:28:43 +0000 From: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= To: Dan Gora , "dev@dpdk.org" CC: David Marchand , Jerin Jacob Thread-Topic: [PATCH 2/2] eal: resolve getentropy at run time for random seed Thread-Index: AQHWGBbnpsAMgpsIskSJw+C3jfMzDaiEz+sA Date: Wed, 22 Apr 2020 08:28:43 +0000 Message-ID: <5df15087-781e-d27f-b7d8-50b1b8cb0c94@ericsson.com> References: <20200421195446.1730-1-dg@adax.com> <20200421195446.1730-3-dg@adax.com> In-Reply-To: <20200421195446.1730-3-dg@adax.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=mattias.ronnblom@ericsson.com; x-originating-ip: [95.205.16.81] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fde038cd-48ce-4389-e14f-08d7e6972b64 x-ms-traffictypediagnostic: HE1PR07MB4444: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 03818C953D x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB4284.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(6486002)(31686004)(478600001)(71200400001)(66946007)(86362001)(85202003)(76116006)(5660300002)(186003)(6512007)(31696002)(2616005)(8936002)(36756003)(8676002)(81156014)(54906003)(6506007)(2906002)(110136005)(66556008)(316002)(64756008)(66446008)(4326008)(66476007)(26005)(85182001)(53546011); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bOP4+kXl5YkXtsLQN5SGcmROGGhVHzp9bLsXoabl7PkRqOz6zFr1Yad0gKDyVO61vmU1pdXzl6FVaZwwJpGtCXG7Tu9S8VNUtkvvcGnA0Is0HBRVBDiCFnqp4ciGAfvc0/cZdP86WGZIba4An53DhKR8Cfk+h1s9/6+Rwqt5OKOD17yrEN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dUCqNXUm3wu7YtMRzg= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <7C29D08982DDBE40B245181D90685542@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-Network-Message-Id: fde038cd-48ce-4389-e14f-08d7e6972b64 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2020 08:28:43.6657 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: d+vTz55Ha6tPCNNwfUlvPVyTm45QvUrs0gk35amv83OWIcM73eF4ll73WJXzSwaPSzplBGLyoeO+Yf3TNOVl8NljgX1guYmH40+34JZowjo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB4444 Subject: Re: [dpdk-dev] [PATCH 2/2] eal: resolve getentropy at run time for random seed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" T24gMjAyMC0wNC0yMSAyMTo1NCwgRGFuIEdvcmEgd3JvdGU6DQo+IFRoZSBnZXRlbnRyb3B5KCkg ZnVuY3Rpb24gd2FzIGludHJvZHVjZWQgaW50byBnbGliYyB2Mi4yNSBhbmQgc28gaXMNCj4gbm90 IGF2YWlsYWJsZSBvbiBhbGwgc3VwcG9ydGVkIHBsYXRmb3Jtcy4gIFByZXZpb3VzbHksIGlmIERQ REsgd2FzDQo+IGNvbXBpbGVkICh1c2luZyBtZXNvbikgb24gYSBzeXN0ZW0gd2hpY2ggaGFzIGdl dGVudHJvcHkoKSwgaXQgd291bGQNCj4gaW50cm9kdWNlIGEgZGVwZW5kZW5jeSBvbiBn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