What you do is entered into your consciousness. Inputs accumulate in your fundamental. The existence in your fundamental formed by accumulation is called karma. Karma controls what you do in the way it is made. This is called destiny. That is, the existence within yourself created by what you do is called karma as a result, and destiny is the result of karma acting as a factor controlling your future behavior. This is the same principle that the fruits harvested this year are used as seeds for the next year.