diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2017-05-08 09:50:13 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-05-08 09:50:13 +0200 |
commit | 4f2d2af2372c7b6a3015e740182d69c7bba69869 (patch) | |
tree | 3f0f21d82c4812fe2efb41d4ae0a6a1bc3d8e2e1 /tests/certs | |
parent | e2b394106d543c4615a60795b7fdce04bd4e5090 (diff) | |
download | curl-4f2d2af2372c7b6a3015e740182d69c7bba69869.tar.gz |
rand: treat fake entropy the same regardless of endianness
When the random seed is purposely made predictable for testing purposes
by using the CURL_ENTROPY environment variable, process that data in an
endian agnostic way so the the initial random seed is the same
regardless of endianness.
- Change Curl_rand to write to a char array instead of int array.
- Add Curl_rand_hex to write random hex characters to a buffer.
Fixes: #1315
Co-authored-by: Daniel Stenberg
Reported-by: Michael Kaufmann
Diffstat (limited to 'tests/certs')
0 files changed, 0 insertions, 0 deletions