OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogutil commits / 1995516

Remove usage of dorepeat
19955160bfbba9bbda64c77be90d9f62127cefdc
by Linas Vepštas <linasvepstas@gmail.com> · 2025-12-10T19:51:04.000Z

Changed files (1) +1 -2

opencog/util/random.h +1 -2
……@@ -29,7 +29,6 @@
2929#include <limits>
3030#include <type_traits>
3131
32#include <opencog/util/dorepeat.h>
3332#include <opencog/util/RandGen.h>
3433#include <opencog/util/mt19937ar.h>
3534#include <opencog/util/numeric.h>
……@@ -134,7 +133,7 @@ static inline std::string randstr(const std::string& prefix=std::string(),
134133{
135134 std::stringstream ss;
136135 ss << prefix << std::setbase(base);
137 dorepeat(n)
136 for (int j=0; j<n; j++)
138137 ss << rng.randint();
139138 return ss.str();
140139}