I am developing a sample program to generate a 2D Barcode, using Reed-Solomon error correction codes. By going through this [article](https://www.thonky.com/qr-code-tutorial/error-correction-coding), I am developing the program. But I couldn't understand how he generated the generator polynomial.

Can anybody explain how they generated the generator polynomial? Please guide me to complete this correction step.