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 260F4A00C4 for ; Wed, 2 Nov 2022 13:01:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C35B40A80; Wed, 2 Nov 2022 13:01:27 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id E32C940041; Wed, 2 Nov 2022 13:01:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667390484; x=1698926484; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cG8M4P6yMHfxBsBcL0d7mivthwiPH3K0smUeTEEONyw=; b=EdlTkfYziw875nHf2aXq+5OTHeNGD3zq3PxuMUWDaHo7rYKUYJDvN7e0 c2k8hX0ceeYqH9v57yoHxxcdbXk5nnL/oo5XVcBOeOZR9Bsxu/SHZOYgu Tz0hixeaRfvijlqHwhgO439msrVIyequKPeu8JsKwCTPhNAs+niIVrK1H ogppdDr21MCDkmRyeWIf3w5W8AH3mB3Br7+VTYm5liZOaTze9/gzbZ8l2 q3xy+3EO3N2ON6FUUNJuAzlEMctkt5ZKf92rtWRMe+1V77QBw13piKYJd VpPKhxZPCLESd4MimX5M1JHeJ11SpmvD54qXtCB4L5nxaqmmL52ogp+Kj A==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="336065227" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="336065227" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 05:01:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="879450691" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="879450691" Received: from silpixa00400883.ir.intel.com ([10.243.23.148]) by fmsmga006.fm.intel.com with ESMTP; 02 Nov 2022 05:01:20 -0700 From: Brian Dooley To: Brian Dooley Cc: dev@dpdk.org, stable@dpdk.org, gakhil@marvell.com Subject: [PATCH v1] examples/fips_validation: fix IV generation for gmac Date: Wed, 2 Nov 2022 12:01:17 +0000 Message-Id: <20221102120117.381696-1-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Replace rand() call in fips validation example with rte_rand(). Coverity issue: 381668 Fixes: e27268bd2103 ("examples/fips_validation: add parsing for AES-GMAC") Signed-off-by: Brian Dooley --- examples/fips_validation/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index 40a5b70e07..404a29d7b6 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "fips_validation.h" #include "fips_dev_self_test.h" @@ -761,7 +762,7 @@ prepare_auth_op(void) } for (i = 0; i < vec.iv.len; i++) { - int random = rand(); + int random = rte_rand(); vec.iv.val[i] = (uint8_t)random; } } -- 2.25.1