mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 10:35:35 +00:00
Follow Mbed TLS coding style
This commit is contained in:
parent
4c63b98e94
commit
b47b105838
|
@ -175,16 +175,17 @@ int mbedtls_platform_random_delay( size_t max_rand )
|
|||
volatile size_t i = 0;
|
||||
if( max_rand == 0 || max_rand > INT_MAX )
|
||||
{
|
||||
return -1;
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
random_number = mbedtls_platform_random_in_range( max_rand );
|
||||
|
||||
do {
|
||||
do
|
||||
{
|
||||
i++;
|
||||
} while ( i < random_number );
|
||||
} while( i < random_number );
|
||||
|
||||
return (int) i;
|
||||
return( (int)i );
|
||||
#endif /* !MBEDTLS_ENTROPY_HARDWARE_ALT */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue