2001-11-19 Sam Hartman <hartmans@mit.edu>
+ * t_prng.c (main): Fix seeding bug in t_prng
+
* t_prng.reseedtest: New test; description in t_prng.reseedtest-comments
* t_prng.c (main): If we request 0 bytes of output don't try to
assert ((input.data = malloc(seed_length)) != NULL);
for (lc = seed_length; lc > 0; lc--) {
scanf ("%2x", &i);
- input.data[lc] = (unsigned) (i&0xff);
+ input.data[seed_length-lc] = (unsigned) (i&0xff);
}
input.length = seed_length;
assert (krb5_c_random_add_entropy (0, source_id, &input) == 0);
-8466373deab3992f57e7a96624b26973c7b32c51
+9ff89f8804f5cb6cab3b45eb5d6811f23c5f58c2