1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

fixes to axhttpd from Joe Pruett

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@170 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2010-05-07 10:39:58 +00:00
parent e674d076d4
commit 8b2e5bba82
3 changed files with 24 additions and 15 deletions

View File

@ -131,12 +131,12 @@ EXP_FUNC void STDCALL RNG_initialize(const uint8_t *seed_buf, int size)
a number that should be hard to find, due to the fact that it
relies on knowing the private key */
memcpy(entropy_pool, seed_buf, ENTROPY_POOL_SIZE);
srand((long)entropy_pool);
/* mix it up a little with a stack address */
for (i = 0; i < ENTROPY_POOL_SIZE/4; i++)
ep[i] ^= seed_addr_val;
srand((long)entropy_pool);
#endif
}