Calculate the Init Hash Code

Can you provide me the best to calculate the init hash code, for the moment I’m using the function in the SDK project of pancakeswap but how to do it from the Factory contract?


I haven’t look at the pancakeswap code, and i’m assuming it’s the same as uniswap. The init hash code is the keccak256(code_pair_contract)