Introduction - If you have any usage issues, please Google them yourself
Threshold algorithm (also known as secret sharing algorithm) source, the standard C implementation, can be directly portable across platforms. Random number generation which only calls the rand () function, suggesting practical use, modify the random number generating function, at least preamble added srand ((unsigned) time (NULL))