From e8a5d1afbd83dcec8470a61da81c535ec7685a9d Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Fri, 8 Sep 2023 14:47:37 +0100 Subject: [PATCH] entropy_poll: Updated documentation for entropy_poll loop. Signed-off-by: Minos Galanakis --- library/entropy_poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/entropy_poll.c b/library/entropy_poll.c index 52be9f5505..5eb6d7f55c 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c @@ -61,8 +61,8 @@ int mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, /* * BCryptGenRandom takes ULONG for size, which is smaller than size_t on - * 64-bit Windows platforms. Ensure len's value can be safely converted into - * a ULONG. + * 64-bit Windows platforms. Extract entropy in chunks of len (dependent + * on ULONG_MAX) size. */ while (len != 0) { unsigned long ulong_bytes =