summaryrefslogtreecommitdiff
path: root/liblogfs/format.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-12-15 16:40:16 +0000
committerforsyth <forsyth@vitanuova.com>2011-12-15 16:40:16 +0000
commit28942ead413418b56c5be78e8c4c400881fba72e (patch)
treecd646dce007974acc02e535a2c9ff800ada2b684 /liblogfs/format.c
parent1eacf117f57c983da30e88f232fab9db7b1e300d (diff)
20111215-1640
Diffstat (limited to 'liblogfs/format.c')
-rw-r--r--liblogfs/format.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/liblogfs/format.c b/liblogfs/format.c
index f270c84f..4615a893 100644
--- a/liblogfs/format.c
+++ b/liblogfs/format.c
@@ -1,8 +1,6 @@
-#include "lib9.h"
+#include "logfsos.h"
#include "logfs.h"
#include "local.h"
-#include "mp.h"
-#include "libsec.h"
char *
logfsformat(LogfsLowLevel *ll, long base, long limit, long bootsize, int trace)
@@ -70,7 +68,7 @@ logfsformat(LogfsLowLevel *ll, long base, long limit, long bootsize, int trace)
if(trace > 1)
print(" previously formatted");
}
- r = rand() % (sizeinblocks - u);
+ r = nrand(sizeinblocks - u);
if(bootblocksdone < bootblocks && r < (bootblocks - bootblocksdone)) {
tag = LogfsTboot;
path = mkdatapath(bootblocksdone, 0);