views:

8

answers:

0

I have found the rand_s function, part of the CRT, to be extremely useful while developing my application. However, it is my understanding that it is not prototyped in recent MinGW header files.

Therefore I am asking for a comprehensive means of either providing or prototyping such a function. I have considered using an #ifdef MINGW style hook, however, this may fail should future revisions start prototyping the function.

Therefore, what is the best way of making the function available to my program such that it can be compiled with MinGW?