diff --git a/ctaocrypt/src/random.c b/ctaocrypt/src/random.c index 03dd75553..0b84af3e5 100644 --- a/ctaocrypt/src/random.c +++ b/ctaocrypt/src/random.c @@ -629,6 +629,18 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz) return 0; } +#elif defined(CYASSL_TYTO) + + int GenerateSeed(OS_Seed* os, byte* output, word32 sz) + { + int i; + + for (i = 0; i < sz; i++ ) + output[i] = rand_gen(); + + return 0; + } + #elif defined(NO_DEV_RANDOM) #error "you need to write an os specific GenerateSeed() here" diff --git a/ctaocrypt/test/test.c b/ctaocrypt/test/test.c index 293879c03..a0e72d83a 100644 --- a/ctaocrypt/test/test.c +++ b/ctaocrypt/test/test.c @@ -121,7 +121,9 @@ #define printf dc_log_printf #endif -#include "ctaocrypt/test/test.h" +#ifndef CYASSL_TYTO + #include "ctaocrypt/test/test.h" +#endif typedef struct testVector { diff --git a/cyassl/ctaocrypt/types.h b/cyassl/ctaocrypt/types.h index ea9cf8c11..4d101275e 100644 --- a/cyassl/ctaocrypt/types.h +++ b/cyassl/ctaocrypt/types.h @@ -211,7 +211,9 @@ enum { #endif #ifndef CTYPE_USER - #include + #ifndef CYASSL_TYTO + #include + #endif #if defined(HAVE_ECC) || defined(HAVE_OCSP) #define XTOUPPER(c) toupper((c)) #define XISALPHA(c) isalpha((c))