How Bitcoin Core calculate extended private masterkey from hdseed
Conversion from a HD seed to a master private key is specified by BIP 32.

It is done by computing a HMAC-SHA512 where the key is the text Bitcoin seed and the data is the HD seed itself. The first 32 bytes (256 bits) is the master private key. The last 32 byte is the chaincode for the master key.