summaryrefslogtreecommitdiff
path: root/tests/data/test169
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2017-05-08 09:50:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-08 09:50:13 +0200
commit4f2d2af2372c7b6a3015e740182d69c7bba69869 (patch)
tree3f0f21d82c4812fe2efb41d4ae0a6a1bc3d8e2e1 /tests/data/test169
parente2b394106d543c4615a60795b7fdce04bd4e5090 (diff)
downloadcurl-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/data/test169')
0 files changed, 0 insertions, 0 deletions