From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7DFECA05D3 for ; Mon, 22 Apr 2019 15:25:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0FE681B44A; Mon, 22 Apr 2019 15:25:18 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E7DB61B3EE for ; Mon, 22 Apr 2019 15:25:15 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2019 06:25:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,381,1549958400"; d="scan'208";a="142607967" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 22 Apr 2019 06:20:13 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 22 Apr 2019 06:20:13 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.26]) by fmsmsx162.amr.corp.intel.com ([169.254.5.66]) with mapi id 14.03.0415.000; Mon, 22 Apr 2019 06:19:12 -0700 From: "Wiles, Keith" To: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= CC: "dev@dpdk.org" , "stephen@networkplumber.org" Thread-Topic: [dpdk-dev] [RFC v2 2/2] eal: introduce random generator function with upper bound Thread-Index: AQHU+HU6QoHfz9YxXUS0jvb0DcAh1aZHmAZ+gACgioCAAGfQgA== Date: Mon, 22 Apr 2019 13:19:11 +0000 Message-ID: <971EE050-C6D3-4B5F-B850-D29D4E457207@intel.com> References: <20190408123029.6701-1-mattias.ronnblom@ericsson.com> <20190419212138.17422-1-mattias.ronnblom@ericsson.com> <20190419212138.17422-3-mattias.ronnblom@ericsson.com> <06bef528-e195-0d42-d4e9-f26e5c9880cd@ericsson.com> <4440C41D-23E4-4A46-8C8A-3AA2ECB59C40@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.61.33] Content-Type: text/plain; charset="UTF-8" Content-ID: <9DA64B9E9932DE4B88ED743F787120F1@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC v2 2/2] eal: introduce random generator function with upper bound 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" Message-ID: <20190422131911.6A3TgUJLpnfvW6_6mywZnV8LjtipRzhW3gLPQJPkcQc@z> DQoNCj4gT24gQXByIDIyLCAyMDE5LCBhdCAyOjA3IEFNLCBNYXR0aWFzIFLDtm5uYmxvbSA8bWF0 dGlhcy5yb25uYmxvbUBlcmljc3Nvbi5jb20+IHdyb3RlOg0KPiANCj4gT24gMjAxOS0wNC0yMiAw NjozMywgV2lsZXMsIEtlaXRoIHdyb3RlOg0KPiANCj4+PiBGcm9tIGEgcGVyZm9ybWFuY2UgcG9p bnQgb2YgdmlldywgdGhlIGhpZ2gtbG9vcC1jb3VudCBjYXNlcyBhcmUgcmFyZSBlbm91Z2ggbm90 IHRvIHBvc2UgYSBzZXJpb3VzIHRocmVhdC4gRm9yIGV4YW1wbGUsIGJlaW5nIGZvcmNlZCB0byBy ZWRvIHJ0ZV9yYW5kKCkgbW9yZSB0aGFuIGZpdmUgdGltZXMgaXMgb25seSBhIH4zJSByaXNrLg0K Pj4gRXZlbiBhIGZldyBsb29wcyBjYW4gaGF2ZSBhbiBlZmZlY3Qgb24gcG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