|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 12 of 22] xenpaging: remove srand call
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695636 -7200
# Node ID ea8f764e530d66463ceb9e97af9756a2a8f96c7c
# Parent 17c9aa11b28a867864b104322e19d188dd4bc14e
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>
diff -r 17c9aa11b28a -r ea8f764e530d tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c Fri Jun 10 10:47:15 2011 +0200
+++ b/tools/xenpaging/xenpaging.c Fri Jun 10 10:47:16 2011 +0200
@@ -581,9 +581,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 )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 03 of 22 v2] xenpaging: add xs_handle to struct xenpaging, (continued)
[Xen-devel] [PATCH 08 of 22] xenpaging: drop xc.c, move xc_wait_for_event_or_timeout, Olaf Hering
[Xen-devel] [PATCH 04 of 22] xenpaging: drop xc.c, remove ASSERT, Olaf Hering
[Xen-devel] [PATCH 11 of 22] xenpaging: do not bounce p2mt to xenpaging, Olaf Hering
[Xen-devel] [PATCH 06 of 22] xenpaging: drop xc.c, remove xc_wait_for_event, Olaf Hering
[Xen-devel] [PATCH 12 of 22] xenpaging: remove srand call,
Olaf Hering <=
[Xen-devel] [PATCH 10 of 22] xenpaging: correct dropping of pages to avoid full ring buffer, Olaf Hering
[Xen-devel] [PATCH 02 of 22] tools: merge several bitop functions into xc_bitops.h, Olaf Hering
[Xen-devel] [PATCH 09 of 22] xenpaging: drop xc.c, remove xc files, Olaf Hering
[Xen-devel] [PATCH 05 of 22] xenpaging: drop xc.c, remove xc_platform_info_t, Olaf Hering
|
|
|
|
|