I am using mbedtls as TLS library for amazon FreeRTOS running on my hardware(SAM4E).
The library has been ported and I am using nv_seed method to generate random numbers. I am reading and writing the 32Bit data to EEPROM.
I was getting the TLS handshake failure(hang). After debugging, I found out that the numbers saved and read from EEPROM is same all the time and that is the reason for handshake failure.
I cannot generate random numbers using hardware as I do not have dedicated TRNG. So, I have to make the seeding work somehow.