is Microsoft LC random generator patented?

Posted by user396672 on Programmers See other posts from Programmers or by user396672
Published on 2012-12-18T16:57:15Z Indexed on 2012/12/18 17:14 UTC
Read the original article Hit count: 292

Filed under:
|
|
|

I need a very simple pseudo random generator (no any specific quality requirements) and I found Microsoft's variant of LCG algorithm used for rand() C runtime library function fit my needs (gcc's one seems too complex).

I found the algorithm here:

http://rosettacode.org/wiki/Linear_congruential_generator#C

However, I worry the algorithm (including its "magic numbers" i.e coefficients) may by patented or restricted for use in some another way.

Is it allowed to use this algorithm without any licence or patent restrictions or not?

I can't use library rand() because I need my results to be exactly reproducible on different platforms

© Programmers or respective owner

Related posts about c++

Related posts about algorithms