Investments always carry risk. How much risk they carry is where the discount rate comes in; when fancy numbers are run on discounted cash flow, it lets money types figure out present value.
Basically, you get a higher discount rate for riskier investments.