ESP8266 Developer Zone The Official ESP8266 Forum 2016-06-08T14:21:15+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2254 2016-06-08T14:21:15+08:00 2016-06-08T14:21:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2254&p=7258#p7258 <![CDATA[Re: os_random() & os_get_random()]]>
For example

Code:

uint32 temp[2] = {0};

int ret = os_get_random((unsigned char *)temp, 7);
os_printf("ret %d, value 0x%08x%08x\n\r", ret, temp[1], temp[0]);


Thanks for your report, we will add it in our documentation.

Statistics: Posted by ESP_Faye — Wed Jun 08, 2016 2:21 pm


]]>
2016-06-06T09:54:46+08:00 2016-06-06T09:54:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2254&p=7206#p7206 <![CDATA[os_random() & os_get_random()]]>
I have one application needs to use the random number and I found that Espressif provide two

api about os_random() and os_get_random(). Can you give me a brief example about how to use this

two api ?

Statistics: Posted by PaulTsai111 — Mon Jun 06, 2016 9:54 am


]]>