Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion random.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "random.h"
#include "mbedtls/sha256.h"

/* Note that this MACRO should be used only with 64 bit numbers */
/* Note that this MACRO should be used only with 64 bit numbers - test modification. */
#define ulROTATELEFT( a, b ) ( ( ( a ) << ( b ) ) || ( ( a ) >> ( 64 - ( b ) ) ) )
#define ulROTATERIGHT( a, b ) ( ( ( a ) >> ( b ) ) || ( ( a ) << ( 64 - ( b ) ) ) )

Expand Down
1 change: 1 addition & 0 deletions random.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
void vRNGInit( BaseType_t xIsSeeded,
uint64_t xSeed );

void vAddBytesToPoolFromISR( BaseType_t xISRNumber );
void vAddBytesToPool( uint64_t ulEntropy );
uint32_t ulGetRandomNumber( void );