I need to generate a key to my algorithm with a seed (byte array). This code doesn't work, because it's give 2 different results on different platforms:
byte seed [] = {50,30,...};
byte result [] = new byte [20];
SecureRandom rand = new SecureRandom();
rand.setSeed(seed);
rand.nextBytes(result);
I need to get the same results on different platforms.