forked from Mirrors/btrfs-progs
btrfs-progs: utils: fix typo in a variable
Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>master
parent
33d375bc20
commit
00e2a39e18
8
utils.c
8
utils.c
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
static int btrfs_scan_done = 0;
|
static int btrfs_scan_done = 0;
|
||||||
|
|
||||||
static int rand_seed_initlized = 0;
|
static int rand_seed_initialized = 0;
|
||||||
static unsigned short rand_seed[3];
|
static unsigned short rand_seed[3];
|
||||||
|
|
||||||
struct btrfs_config bconf;
|
struct btrfs_config bconf;
|
||||||
|
@ -2487,7 +2487,7 @@ void init_rand_seed(u64 seed)
|
||||||
rand_seed[i] = (unsigned short)(seed ^ (unsigned short)(-1));
|
rand_seed[i] = (unsigned short)(seed ^ (unsigned short)(-1));
|
||||||
seed >>= 16;
|
seed >>= 16;
|
||||||
}
|
}
|
||||||
rand_seed_initlized = 1;
|
rand_seed_initialized = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init_seed(void)
|
static void __init_seed(void)
|
||||||
|
@ -2496,7 +2496,7 @@ static void __init_seed(void)
|
||||||
int ret;
|
int ret;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if(rand_seed_initlized)
|
if(rand_seed_initialized)
|
||||||
return;
|
return;
|
||||||
/* Use urandom as primary seed source. */
|
/* Use urandom as primary seed source. */
|
||||||
fd = open("/dev/urandom", O_RDONLY);
|
fd = open("/dev/urandom", O_RDONLY);
|
||||||
|
@ -2514,7 +2514,7 @@ fallback:
|
||||||
rand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF);
|
rand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF);
|
||||||
rand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16;
|
rand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16;
|
||||||
}
|
}
|
||||||
rand_seed_initlized = 1;
|
rand_seed_initialized = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 rand_u32(void)
|
u32 rand_u32(void)
|
||||||
|
|
Loading…
Reference in New Issue