]> git.proxmox.com Git - libtpms.git/commit
tpm2: Create real random numbers to get different keys
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 1 Nov 2017 00:29:18 +0000 (20:29 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 15 Jun 2018 22:07:48 +0000 (18:07 -0400)
commit1ad2f2670440e3d5ca9f78a36992d7ffe54e56da
tree616fb35685faba390783fe96b73418fac2027489
parent659db6b2b89682dc6ba4928da867397d600b5b7d
tpm2: Create real random numbers to get different keys

Do not use rand() for creating random numbers since this only
creates pseudo random numbers and the keys always end up being
the same since it wasn't seeded, either.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/tpm2/Entropy.c