Fixes for subscriber service.

This commit is contained in:
stephb9959
2021-12-22 09:12:15 -08:00
parent 96c684fe5e
commit ae5c32a8ec
3 changed files with 4 additions and 2 deletions

2
build
View File

@@ -1 +1 @@
119
120

View File

@@ -35,7 +35,9 @@ namespace OpenWifi {
static bool SendChallenge(const SecurityObjects::UserInfoAndPolicy &UInfo, const std::string &Method, const std::string &Challenge);
static inline std::string MakeChallenge() {
return std::to_string(MicroService::instance().Random(1,999999));
char buf[16];
std::sprintf(buf,"%06llu",MicroService::instance().Random(1,999999));
return buf;
}
private: