[PATCH v3] drbd: use get_random_u64() where appropriate
Christoph Böhmwalder
christoph.boehmwalder at linbit.com
Tue Apr 7 13:03:14 CEST 2026
On Sun, Apr 05, 2026 at 04:47:04PM +0100, David Carlier wrote:
>Use the typed random integer helpers instead of
>get_random_bytes() when filling a single integer variable.
>The helpers return the value directly, require no pointer
>or size argument, and better express intent.
>
>Signed-off-by: David Carlier <devnexen at gmail.com>
>---
> drivers/block/drbd/drbd_main.c | 4 ++--
> drivers/block/drbd/drbd_nl.c | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
Maybe I just missed it, but v1 and v2 of this don't seem to exist?
Anyway, the patch itself looks good, thanks.
Reviewed-by: Christoph Böhmwalder <christoph.boehmwalder at linbit.com>
More information about the drbd-dev
mailing list