random-platform.c (612fc05ad210abfba656f2da89120041039c0b57) | random-platform.c (e688df6bc4549f28534cdb001f168b8caae55b0c) |
---|---|
1/* 2 * QEMU Crypto random number provider 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 7 unchanged lines hidden (view full) --- 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21#include "qemu/osdep.h" 22 23#include "crypto/random.h" | 1/* 2 * QEMU Crypto random number provider 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 7 unchanged lines hidden (view full) --- 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21#include "qemu/osdep.h" 22 23#include "crypto/random.h" |
24#include "qapi/error.h" |
|
24 25#ifdef _WIN32 26#include <wincrypt.h> 27static HCRYPTPROV hCryptProv; 28#else 29static int fd; /* a file handle to either /dev/urandom or /dev/random */ 30#endif 31 --- 62 unchanged lines hidden --- | 25 26#ifdef _WIN32 27#include <wincrypt.h> 28static HCRYPTPROV hCryptProv; 29#else 30static int fd; /* a file handle to either /dev/urandom or /dev/random */ 31#endif 32 --- 62 unchanged lines hidden --- |