Hi Espressif:
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 ?
os_random() & os_get_random()
-
- Posts: 48
- Joined: Wed May 04, 2016 7:32 pm
Re: os_random() & os_get_random()
Postby ESP_Faye » Wed Jun 08, 2016 2:21 pm
Hi,
For example
Thanks for your report, we will add it in our documentation.
For example
Code: Select all
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.
Who is online
Users browsing this forum: No registered users and 13 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.