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 4E434A0350; Mon, 29 Jun 2020 11:30:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 080EE2C01; Mon, 29 Jun 2020 11:30:21 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130085.outbound.protection.outlook.com [40.107.13.85]) by dpdk.org (Postfix) with ESMTP id 7E0AA1023 for ; Mon, 29 Jun 2020 11:30:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HTn6cOsytliXAv1fgZnogvkrHqLmAqpMA3RxqsJmO7n9ALRTtaVu5JYXN45Alvn9F5eWMn5/9GehkZe90gsbcexGTFvZWO2Ac9dPjLdI/0viWddAvaCnvCiy+AWdc583DcMS4mcE0OEuY4yvxd2XwXTXmP6Z5sDZauxTR2b+JTbOBgy6wcingbOvf94SNyprPVL3KiuZqlxWZvpvuCMo2PuuvIYgtWN9F8TxsI2wNp4O9uHGEV7DQNtjjtDX+mxr0Q2jrce5RLjWvZ+7BGjrod1PoVvXs7sdcD+LbOKWeT7yylvfuhbh2nlW3nDv3/WlW0AVZY8WZYNdLf6+lgv/7A== 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=yR7Mb3Vb1mjgjQ62X3jXe6kMCJHRXfcuy2ywMMCxf84=; b=dXud27ISctDydufIxqECZJjHA7oBBn6UuL/ibzCxLIxPAMcpdS35lL2igRjh96PLwU+jZioB+52UYLvQzSsmojhzZqqAEzN0x1LBTHUft9uGxXirOy9NZlq/pe8Md34zmc+xvXyBhVZDSY6/mGEAM8M/CtLtDvLQXtqPZ+oNURJEeHVNvpa4K3J6wsg9O5FLi6d6FjjSwVy+vCuGms4mbE1YpeQsL5rAfrGcfh6rfacUTKuMxhlDHfUlVqdlqMoFfC25wYOab/gG+Nc1pgQeixKL50x/YZImDdyP42kwCA1yUfGnu63H3ScwBfKarYeGr0YFOMgmnpcwGHHIE3KQEg== 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=yR7Mb3Vb1mjgjQ62X3jXe6kMCJHRXfcuy2ywMMCxf84=; b=Cg0bxAgnM9GlG4VOwBieIj5w45RtfaiVVo3jxQaos36Bhw74uUTP5jqpVjt5aQ+Sf6J09lJtxIhj7IcsATwE+Npot7SP89DDLxyG4WRcdpd71Gr+heYwljAuLtGruMppzbKhsLPmt1lUYApKCUU2xKDqmZy1LOC4SQxsbBL/XOs= Received: from DB7PR07MB5978.eurprd07.prod.outlook.com (2603:10a6:10:80::15) by DB6PR0701MB2264.eurprd07.prod.outlook.com (2603:10a6:4:51::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.11; Mon, 29 Jun 2020 09:30:18 +0000 Received: from DB7PR07MB5978.eurprd07.prod.outlook.com ([fe80::a188:9ec1:cd8d:23]) by DB7PR07MB5978.eurprd07.prod.outlook.com ([fe80::a188:9ec1:cd8d:23%4]) with mapi id 15.20.3153.018; Mon, 29 Jun 2020 09:30:18 +0000 From: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= To: Dan Gora , "dev@dpdk.org" CC: David Marchand , Jerin Jacob Thread-Topic: [PATCH v4 2/2] eal: emulate glibc getentropy for initial random seed Thread-Index: AQHWGP/4FfHexizbjkmQtR5yKPmC6qjvvcyA Date: Mon, 29 Jun 2020 09:30:18 +0000 Message-ID: References: <20200421195446.1730-1-dg@adax.com> <20200422234255.7066-1-dg@adax.com> <20200422234255.7066-3-dg@adax.com> In-Reply-To: <20200422234255.7066-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.8.1 authentication-results: adax.com; dkim=none (message not signed) header.d=none;adax.com; dmarc=none action=none header.from=ericsson.com; x-originating-ip: [95.204.215.13] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 81defc6e-99b5-483c-afa7-08d81c0f096e x-ms-traffictypediagnostic: DB6PR0701MB2264: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 044968D9E1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: W4aFHrTwmrlPfYuWgbrUOfWD46DQO73rY//twY+yi9UGS9srj//YIcWfvDopFIGR5FrFPLeBZrj6DGPYucEkobvkRmt7SyMrxRRGFo/FGcK0lu/K9NBPTFRPJ1rN5Qz0JV6ZGyR7AfjADSsFLi96DHLXDoTcLT8mCYcnfdIC79Yrd7QjCBH3uxTfanXu0Yu48wFV/LK8B4nfZpi/d/JQrgTdPTmPRpcL7O7KaFsHsS+9SbPVWXwEnK41fXE0Z2A+fpSr8K++UqwVf+CUwSlOeaZAXhosPjd4Px54KnWZbQRYWs4GYHO30aPNXEsRcJXLJgnmSfqfZL/ylYKIkCzzvkXvZSG5pPDv/zsuOos3iZ0065OnI3GHWAfAyhQFOuRx x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR07MB5978.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(6512007)(498600001)(31696002)(2906002)(85202003)(86362001)(8676002)(85182001)(6506007)(83380400001)(71200400001)(31686004)(53546011)(6486002)(26005)(110136005)(54906003)(186003)(8936002)(36756003)(66946007)(76116006)(66556008)(64756008)(66446008)(66476007)(5660300002)(4326008)(2616005)(43740500002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Lnfp3NFpqtJSck0GfUvONZzuQJVhNZFXlp/Ead13ol0yYegaz+KJFDq9CvIxP/e8Lwa1DBO6mS4zgY+fOdSQhwFHNQLKwu8IB2WDQpRdP2+wEhdXv2c/e5ADk16A2e4ZA2iFA3neskuVayajKxNSogyVJcV8AFwegFsgRe1AW3G4UTvTYgK5IUhHCcWZDQepw/C28sAN66LBO2jYqwhQfkieGgDDGHL8wHGvDf6aPHUzJ57Z72HjNyrBbfktLCI/yvZ1LpTFGQKmngliGehEPDJxVxVHJGc1r4ab2QpTo4uba851L7l463nBwthMBjUSi3xAIv5R2TVunC+rubwgmrDfhzHyPsAlizJ5jmM7GSee6sxwEso3DOCCpjkxNPJQbTtLyhkyWaqg2SBx80pBg4slmCZ37jtxRmK02mam8iT4Teo0/DHEpHKBJhWX029Ins9fP5RS0wtHRlFbqRcLpXnIRZ+S0txYNHBIwQPJeZQ= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <19EC1ADB37200C4C8833B347060CBA5F@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81defc6e-99b5-483c-afa7-08d81c0f096e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2020 09:30:18.0151 (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: HcrIlFhXij5ZW2eI/nVOQrAa/T77hTl9HK/4hnY8R/gECrpKtsAI9XR3mv9LhakAMU4qnAfDzcR0rPECVmvIx3PCXTdwqCk24Oaqob/RCQE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2264 Subject: Re: [dpdk-dev] [PATCH v4 2/2] eal: emulate glibc getentropy for initial 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" T24gMjAyMC0wNC0yMyAwMTo0MiwgRGFuIEdvcmEgd3JvdGU6DQo+IFRoZSBnZXRlbnRyb3B5KCkg ZnVuY3Rpb24gd2FzIGludHJvZHVjZWQgaW50byBnbGliYyB2Mi4yNSBhbmQgc28gaXMNCj4gbm90 IGF2YWlsYWJsZSBvbiBhbGwgc3VwcG9ydGVkIHBsYXRmb3Jtcy4gIFByZXZpb3VzbHksIGlmIERQ REsgd2FzDQo+IGNvbXBpbGVkICh1c2luZyBtZXNvbikgb24gYSBzeXN0ZW0gd2hpY2ggaGFzIGdl dGVudHJvcHkoKSwgaXQgd291bGQNCj4gaW50cm9kdWNlIGEgZGVwZW5kZW5jeSBvbiBnbGliYyB2 Mi4yNSB3aGljaCB3b3VsZCBwcmV2ZW50IHRoYXQgYmluYXJ5DQo+IGZyb20gcnVubmluZyBvbiBh IHN5c3RlbSB3aXRoIGFuIG9sZGVyIGdsaWJjLiAgU2ltaWxhcmx5IGlmIERQREsgd2FzDQo+IGNv bXBpbGVkIG9uIGEgc3lzdGVtIHdoaWNoIGRpZCBub3QgaGF2ZSBnZXRlbnRyb3B5KCksIGdldGVu dHJvcHkoKQ0KPiBjb3VsZCBub3QgYmUgdXNlZCBldmVuIGlmIHRoZSBleGVjdXRpb24gc3lzdGVt IHN1cHBvcnRlZCBpdC4NCj4NCj4gSW50cm9kdWNlIGEgbmV3IHN0YXRpYyBmdW5jdGlvbiwgX19y dGVfZ2V0ZW50cm9weSgpIHRvIGVtdWxhd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