]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ext3/ialloc.c
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
[karo-tx-linux.git] / fs / ext3 / ialloc.c
index 082afd78b10788ed8b1645f0f26c76bf3ea91b0e..a1b810230cc503708fa5cb2a91598684a0c3ca41 100644 (file)
@@ -215,7 +215,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent)
                int best_ndir = inodes_per_group;
                int best_group = -1;
 
-               get_random_bytes(&group, sizeof(group));
+               group = prandom_u32();
                parent_group = (unsigned)group % ngroups;
                for (i = 0; i < ngroups; i++) {
                        group = (parent_group + i) % ngroups;