mtytel / cursynth

GNU ncurses terminal synthesizer
http://gnu.org/software/cursynth
GNU General Public License v3.0
446 stars 64 forks source link

minor compile issue in mopo/src/wave.h #26

Open ColumPaget opened 6 years ago

ColumPaget commented 6 years ago

Hi,

cursynth failed to make on my system with the error:

In file included from mono_panner.cpp:20:0: wave.h: In static member function 'static mopo::mopo_float mopo::Wave::whitenoise()': wave.h:245:28: error: 'rand' was not declared in this scope return (2.0 rand()) / RAND_MAX - 1; ^ wave.h:245:33: error: 'RAND_MAX' was not declared in this scope return (2.0 rand()) / RAND_MAX - 1;

Adding the header to mopo/src/wave.h fixed this