提交 49f35ff0 编写于 作者: M me-no-dev

use esp_random in WMath.cpp

上级 6db0ee13
......@@ -25,6 +25,7 @@
extern "C" {
#include <stdlib.h>
#include "esp_system.h"
}
void randomSeed(unsigned long seed)
......@@ -39,7 +40,7 @@ long random(long howbig)
if(howbig == 0) {
return 0;
}
return rand() % howbig;
return esp_random() % howbig;
}
long random(long howsmall, long howbig)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册