[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenpaging: remove srand call



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695636 -7200
# Node ID 926febc8bd9804956191058d774510556d60338b
# Parent  bbdd7413a50a378d146e0ec9a2f5746da09e214a
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 <olaf@xxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r bbdd7413a50a -r 926febc8bd98 tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c       Wed Jun 22 14:47:13 2011 +0100
+++ b/tools/xenpaging/xenpaging.c       Fri Jun 10 10:47:16 2011 +0200
@@ -581,9 +581,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 )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.