Taking Back a Second Mortgage

I reading on creative deal structuring and I keep on coming acrossed second mortgages. This is refering to wholesaling a deal. If you don’t want your buyer to put up any cash on the deal you can carry a second mortgage note. How would you go about doing this? Would you take the money from your own lines of credit or take out a loan? Or how would you fund the second mortgage?