From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 3 of 7] xenpaging: remove srand call Date: Thu, 31 Mar 2011 19:36:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1301591570 -7200 # Node ID cd35892de8ff2388aa46e3768393f217a3c63521 # Parent a811d86a48f400cd541500e0e6ae765fdcd02ef9 xenpaging: remove srand call The policy uses now a linear algorithm instead of picking random gfn numbers. Remove the call to srand(). Signed-off-by: Olaf Hering diff -r a811d86a48f4 -r cd35892de8ff tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c Thu Mar 31 19:11:57 2011 +0200 +++ b/tools/xenpaging/xenpaging.c Thu Mar 31 19:12:50 2011 +0200 @@ -544,9 +544,6 @@ domain_id = atoi(argv[1]); num_pages = atoi(argv[2]); - /* Seed random-number generator */ - srand(time(NULL)); - /* Initialise domain paging */ paging = xenpaging_init(domain_id); if ( paging == NULL )