From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2778A0555; Wed, 25 May 2022 17:47:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 804C842B8C; Wed, 25 May 2022 17:47:27 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 5F7CB42B82 for ; Wed, 25 May 2022 17:47:26 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id w3so12283918plp.13 for ; Wed, 25 May 2022 08:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZKzH1vshbubmrnaQu7jiKOmYdjFBj1gVYSupN6Gdv20=; b=gmteyNQEG7pQ9RHVKaW/sAWr+zaZXk8QaRlG2oPJyLkIhG9lFhFvJLOj+qUnOp8jIs UMSCWT62p6ATxkd1Oq+bCelgOqGWs5DxFKqTRYenx1z8fZ1+JZ3isvijWJI7r4yXj4ZV VItaJPMjJgjQ2B1AllhhTu8EIpbtm2JETFxOBl9sRvCiwoauI/Bg6CD9mg15RNfBJuUp onIGXnVlw0W/hoj+MIkVyXPxC5Iwc9K5nD2+2cFhaaWJAp8utfFKssamdPdIceDbkVWp mcuAr+AdArvuJVNaT3//ucTcWir+4HnBzQKuNBoXaU8Z5CXDu8tyEQVH8DmvmBbf9VnO OGRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZKzH1vshbubmrnaQu7jiKOmYdjFBj1gVYSupN6Gdv20=; b=BdTGHi0z+c2ziI93nv90acjuwRUMb1jgzprN1FeyIUbrx0APl9kLfisvBPQJVGYZ+S RkxnjnTqwE278Z/zDuGcD9gtN43xK0D//+9gagDcxoJpoDqK4e9l0dHIP5vmQrZqM2lE ZsNT4gcU9uMk38tkmB8kxHjTgxzwPlbyZy5MAQUxUskT0vUnEu2lqt3s3OA8OdvmIR8A rEmTCDn5WmcV1mwAlyY320IXn8v4dvVmh76LJJlq2uibb9OKk7R2acRPowA/HvBFi6iP pBqNmAsAqVz9ia6jb0uRZ46ryi9i9oCYiEMelXPoUqTGbGlX0Gg4ODMbrWxEArgmtUhP gvPg== X-Gm-Message-State: AOAM53015hH8vRi5AckT7E/d33JIUPZom3SN5nqk7cM1Y93PlI7ny2/g yLO8tgUHEbC+s1PPt4MfoxownA== X-Google-Smtp-Source: ABdhPJydI0NCxj5v3iBsDaRW0DmxVkEct5XTUMvwdDdWzDUQFA9nyqYOgM2HHaEdvzStpBrgKyrB0g== X-Received: by 2002:a17:90a:7f94:b0:1cb:1853:da1b with SMTP id m20-20020a17090a7f9400b001cb1853da1bmr11100393pjl.14.1653493645611; Wed, 25 May 2022 08:47:25 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id g13-20020a17090a7d0d00b001d95c09f877sm1940629pjl.35.2022.05.25.08.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 08:47:25 -0700 (PDT) Date: Wed, 25 May 2022 08:47:22 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: "dev@dpdk.org" , Ray Kinsella Subject: Re: [RFT v2 1/3] random: add rte_rand_float() Message-ID: <20220525084723.30d6a6f3@hermes.local> In-Reply-To: <589158f3-e42a-8e10-c5ad-5b05b4e6db04@ericsson.com> References: <20220524184623.480646-1-stephen@networkplumber.org> <20220524221824.1037693-1-stephen@networkplumber.org> <20220524221824.1037693-2-stephen@networkplumber.org> <589158f3-e42a-8e10-c5ad-5b05b4e6db04@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 25 May 2022 14:45:37 +0000 Mattias R=C3=B6nnblom wrote: > I would call it something else than "float", in particular since it=20 > doesn't return "float" but a "double" type floating point value. >=20 > rte_drand() maybe? Short, but might be confused with rte_rand(), given=20 > the visual similarity. I still I would still prefer that over=20 > rte_rand_double(). The corresponding standard library routine is drand48(). With that convention it would be rte_drand().