entropy_poll: Updated documentation for entropy_poll loop.

Signed-off-by: Minos Galanakis <[email protected]>
This commit is contained in:
Minos Galanakis
2023-09-25 14:12:22 +01:00
parent 7f8e8c5ae2
commit e8a5d1afbd
+2 -2
View File
@@ -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 =