How could I ensure that a randomizing algorithm would produce the same random number for two different programs. I am trying to make a chat program that utilizes a shared password, or key and then uses that key to generate a random string that is only predictable to both programs.
For example
Person A: asd4sa5d8s5s5d5sd Person B: asd4sa5d8s5s5d5sd
Person A: 2SDASD5545S Person B: 2SDASD5545S