summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ae2419)
raw | patch | inline | side by side (parent: 6ae2419)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 12:16:02 +0000 (13:16 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 12:16:02 +0000 (13:16 +0100) |
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 6ffb482c919b430aec964c909d8dfb53103370ff..ec66a95481e6e669a3774d510300e36d7906060d 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
if (read (fd, &seed, sizeof (seed)) != -1)
{
did_seed = 1;
- dprintf ("Random seed: %i\n", seed);
+ dprintf ("Random seed: %#x\n", seed);
srandom (seed);
}
retval = (int) random ();
- dprintf ("Random number: %i\n", retval);
+ dprintf ("Random number: %#x\n", retval);
return (retval);
}