mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 10:17:45 -04:00
Remove deprecated macro (ipconfigRAND32) references (#781)
* Remove ipconfigRAND32 referances from demos * Fix license header
This commit is contained in:
parent
4629138a42
commit
07c7ba7aa9
17 changed files with 136 additions and 47 deletions
|
@ -273,6 +273,7 @@ static void prvMiscInitialisation( void )
|
|||
{
|
||||
time_t xTimeNow;
|
||||
uint32_t ulLoggingIPAddress;
|
||||
uint32_t ulRandomNumber[ 4 ];
|
||||
|
||||
ulLoggingIPAddress = FreeRTOS_inet_addr_quick( configUDP_LOGGING_ADDR0, configUDP_LOGGING_ADDR1, configUDP_LOGGING_ADDR2, configUDP_LOGGING_ADDR3 );
|
||||
vLoggingInit( xLogToStdout, xLogToFile, xLogToUDP, ulLoggingIPAddress, configPRINT_PORT );
|
||||
|
@ -287,7 +288,16 @@ static void prvMiscInitialisation( void )
|
|||
time( &xTimeNow );
|
||||
LogDebug( ( "Seed for randomizer: %lu\n", xTimeNow ) );
|
||||
prvSRand( ( uint32_t ) xTimeNow );
|
||||
LogDebug( ( "Random numbers: %08X %08X %08X %08X\n", ipconfigRAND32(), ipconfigRAND32(), ipconfigRAND32(), ipconfigRAND32() ) );
|
||||
|
||||
( void ) xApplicationGetRandomNumber( &ulRandomNumber[ 0 ] );
|
||||
( void ) xApplicationGetRandomNumber( &ulRandomNumber[ 1 ] );
|
||||
( void ) xApplicationGetRandomNumber( &ulRandomNumber[ 2 ] );
|
||||
( void ) xApplicationGetRandomNumber( &ulRandomNumber[ 3 ] );
|
||||
LogDebug( ( "Random numbers: %08X %08X %08X %08X\n",
|
||||
ulRandomNumber[ 0 ],
|
||||
ulRandomNumber[ 1 ],
|
||||
ulRandomNumber[ 2 ],
|
||||
ulRandomNumber[ 3 ] ) );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -355,8 +365,6 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
|
|||
/*
|
||||
* Set *pulNumber to a random number, and return pdTRUE. When the random number
|
||||
* generator is broken, it shall return pdFALSE.
|
||||
* The macros ipconfigRAND32() and configRAND32() are not in use
|
||||
* anymore in FreeRTOS+TCP.
|
||||
*
|
||||
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER SO IS
|
||||
* NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue