vanitygen icon indicating copy to clipboard operation
vanitygen copied to clipboard

Use sysconf on macOS to determine number of CPUs

Open moshegottlieb opened this issue 8 years ago • 1 comments

Added #if defined(__APPLE__) wrapper for count_processors, using sysconf (in libc, include unistd.h which is already indirectly included). sysconf(_SC_NPROCESSORS_ONLN) returns the number of processors currently online or -1 if there was an error, this function uses -1 to denote an error so this works fine.

moshegottlieb avatar Jan 08 '17 09:01 moshegottlieb

Fixed in: https://github.com/exploitagency/vanitygen-plus

kenorb avatar Apr 23 '18 02:04 kenorb