Signed-off-by: Michael Brown <mcb30@ipxe.org>
#include <ipxe/hmac.h>
#include <ipxe/list.h>
#include <ipxe/ethernet.h>
+#include <ipxe/rbg.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
ctx->state = WPA_WORKING;
memcpy ( ctx->Anonce, pkt->nonce, sizeof ( ctx->Anonce ) );
if ( ! ctx->have_Snonce ) {
- get_random_bytes ( ctx->Snonce, sizeof ( ctx->Snonce ) );
+ rbg_generate ( NULL, 0, 0, ctx->Snonce,
+ sizeof ( ctx->Snonce ) );
ctx->have_Snonce = 1;
}