Okey, I solved it by randomizing the key
.
Having initiated the the key at the drawPoint function - given we are working with a pseudorandom - generate the same key every time.
Having generated the key at the loop where the drawPoint function is being called solves the issue.