RE: [PATCH v6 3/7] treewide: use get_random_{u8,u16}() when possible, part 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/crypto/testmgr.c b/crypto/testmgr.c
...
> @@ -944,7 +944,7 @@ static void generate_random_bytes(u8 *buf, size_t count)
>  	default:
>  		/* Fully random bytes */
>  		for (i = 0; i < count; i++)
> -			buf[i] = (u8)prandom_u32();
> +			buf[i] = get_random_u8();

Should that whole for loop be replaced with this?
    get_random_bytes(buf, count);






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux