# Re: \[PATCH v1 4/5\] treewide: use get\_random\_bytes when possible

- From: Kees Cook \<hidden\>
- Date: 2022-10-06 06:29:59 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2022/10/6575000
- Thread: https://ratatoskr.run/dri-devel/2022/10/236652/t.md

```text
On Wed, Oct 05, 2022 at 11:48:43PM +0200, Jason A. Donenfeld wrote:
> The prandom_bytes() function has been a deprecated inline wrapper around
> get_random_bytes() for several releases now, and compiles down to the
> exact same code. Replace the deprecated wrapper with a direct call to
> the real function.
> 
> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

Global search/replace matches. :)

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
```
