Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 282 forks source link

Random seed not released (mac only?) #292

Open macfree opened 5 years ago

macfree commented 5 years ago

HI, I had a problem when running the examples that there were too many dev/random clients run, and I tracked it to the function sc2common, maybe only on mac since it hasn't been reported? . I corrected it and seem to be running fine, but I am not too familiar with git so can someone help me to code review and commit the code, or find a better solution since I'm not an expert in programming =) Thank you in advance.

git diff -> file sc2common.cc

endif

+#define NUMBER_OF_RANDOM_GENERATORS 256

namespace sc2 {

+struct RandomGenerator {

-struct RandomGenerator {