I have a need to generate a random SecretKey, in Java, which I will be able to regenerate at some future point. The idea is that this key is unique to the machine on which it is created and isn't stored anywhere. I'm attempting something like this:

```
KeyGenerator keyGen = KeyGenerator.getInstance("DESede");

String hostname = InetAddress.getLocalHost().getHostName();
SecureRandom random = new SecureRandom(hostname.getBytes());
keyGen.init(random);

secretKey = keyGen.generateKey();

```

Obviously, this doesn't work because setting the seed of a SecureRandom doesn't work in the way I thought it did, and I get a different SecretKey each time. Maybe what I'm attempting won't ever work (I know that it looks like a weird thing to want to do...) but if there's a way, I'd realy appreciate it if someone could tell me what that way is!