Litecoin 0.17.1 Genesis Code

Could anyone perhaps please provide me with the code to create a new genesis block for the latest core? Ive tried multiple versions and keep getting assert errors.

Thank you