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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user