diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-03-05 18:58:15 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-03-05 18:58:15 +0100 |
commit | 0ed5f7aacd5e412d80524a1fc7f90b55f470827b (patch) | |
tree | bf29230c0efc135ee707dc847da43a7afb743dad /util-linux | |
parent | 2cdcb1082c3de109eef564795feb5e8a368a88cf (diff) | |
download | busybox-0ed5f7aacd5e412d80524a1fc7f90b55f470827b.tar.gz |
use [s]rand(), not [s]random()
rand() is the most standard C library function,
and on uclibc they are the same. I guess
they are the same in most todays' libc...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mkfs_reiser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/mkfs_reiser.c b/util-linux/mkfs_reiser.c index b4efb9e9f..13abaa889 100644 --- a/util-linux/mkfs_reiser.c +++ b/util-linux/mkfs_reiser.c @@ -224,8 +224,8 @@ int mkfs_reiser_main(int argc UNUSED_PARAM, char **argv) jp = &sb->sb_journal; STORE_LE(jp->jp_journal_1st_block, REISERFS_DISK_OFFSET_IN_BYTES / blocksize + 1/*sb*/ + 1/*bmp#0*/); timestamp = time(NULL); - srandom(timestamp); - STORE_LE(jp->jp_journal_magic, random()); + srand(timestamp); + STORE_LE(jp->jp_journal_magic, rand()); STORE_LE(jp->jp_journal_size, journal_blocks); STORE_LE(jp->jp_journal_trans_max, JOURNAL_TRANS_MAX); STORE_LE(jp->jp_journal_max_batch, JOURNAL_MAX_BATCH); |