Reputation: 41
How would you use, say, the string "abc"
as the seed of an RNG? Would you change it into 0x616263
, or 123
, or hash it with sha1 (or some other hash), or something else?
Upvotes: 1
Views: 78
Reputation: 25053
I'm assuming
In this case, the answer is: it doesn't matter.
Upvotes: 0
Reputation: 8642
Hashing with a high-quality hashing algorithm seems like the best solution. However, depending on how many bits you have to seed with, you might have to use only a part of the generated hash. This shouldn't be a problem if you use a cryptographically strong algorithm that has well-distributed outputs.
Upvotes: 1