SafeRTOS client test fixes

This commit is contained in:
toddouska
2012-08-22 11:07:40 -07:00
parent 7a12fb3e6b
commit 87762e9012
3 changed files with 26 additions and 4 deletions

View File

@@ -146,6 +146,19 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
return 0;
}
#elif defined(CYASSL_SAFERTOS)
#warning "write a real random seed!!!!, just for testing now"
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
{
int i;
for (i = 0; i < sz; i++ )
output[i] = i;
return 0;
}
#elif defined(NO_DEV_RANDOM)
#error "you need to write an os specific GenerateSeed() here"