From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 03 of 12] xenpaging: remove srand call Date: Tue, 07 Jun 2011 11:53:05 +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 1307437211 -7200 # Node ID e2480aad3a3bd4e801bd79daf1b6ee77efe1ed7c # Parent d22489c1b10a7fd17fca635d0a29dc774cf97bf3 xenpaging: remove srand call The policy uses now a linear algorithm instead of a random one. Remove the call to srand(). Signed-off-by: Olaf Hering diff -r d22489c1b10a -r e2480aad3a3b tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c Tue Jun 07 11:00:10 2011 +0200 +++ b/tools/xenpaging/xenpaging.c Tue Jun 07 11:00:11 2011 +0200 @@ -544,9 +544,6 @@ int main(int argc, char *argv[]) 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 )