summaryrefslogtreecommitdiff
path: root/usr/src/cmd/lofiadm/main.c
diff options
context:
space:
mode:
authorDina K Nimeh <Dina.Nimeh@Sun.COM>2009-03-20 11:56:57 -0700
committerDina K Nimeh <Dina.Nimeh@Sun.COM>2009-03-20 11:56:57 -0700
commit7b79d84636ec82b45f00c982cf6810db81852d17 (patch)
tree9e090007ba93df8148d15dd065d5051f8abd44ee /usr/src/cmd/lofiadm/main.c
parent47e946e784719ae402ace34695f67b0e6e76ae5c (diff)
downloadillumos-joyent-7b79d84636ec82b45f00c982cf6810db81852d17.tar.gz
6666204 meta slot opens and closes /dev/urandom needlessly for every read
6722460 finish moving /dev/random and /dev/urandom seeding and usage to libcryptoutil
Diffstat (limited to 'usr/src/cmd/lofiadm/main.c')
-rw-r--r--usr/src/cmd/lofiadm/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/lofiadm/main.c b/usr/src/cmd/lofiadm/main.c
index 63dda817f6..deadd4c5d7 100644
--- a/usr/src/cmd/lofiadm/main.c
+++ b/usr/src/cmd/lofiadm/main.c
@@ -894,7 +894,7 @@ getkeyfromfile(const char *pathname, mech_alias_t *cipher, char **key,
if (*key == NULL)
die(gettext("failed to allocate memory for"
" ephemeral key"));
- if (pkcs11_random_data(*key, *ksz) < 0) {
+ if (pkcs11_get_urandom(*key, *ksz) < 0) {
free(*key);
die(gettext("failed to get enough random data"));
}