Procedural generated map is random in editor but not in packaged game

I’m just going to answer my own post here in case somebody else runs into this problem.
The reason for this behavior is because I did not use a seed for the random number generator. For some weird reason this will still give random numbers when run in the editor, but it will become static when packaged.
I added:
srand (time(NULL));
to the code and problem was solved.

Thanks to warlord57 for figuring this out.