Now that rnd is not optional anymore, add needed rnd_init() for rump.

Fix dev/{scsipi,sysmon} testcases.
This commit is contained in:
njoly 2012-02-04 10:02:25 +00:00
parent 6c09d8d673
commit 54f5b36db5
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump.c,v 1.239 2012/01/29 14:57:31 njoly Exp $ */
/* $NetBSD: rump.c,v 1.240 2012/02/04 10:02:25 njoly Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.239 2012/01/29 14:57:31 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.240 2012/02/04 10:02:25 njoly Exp $");
#include <sys/systm.h>
#define ELFSIZE ARCH_ELFSIZE
@ -315,6 +315,8 @@ rump__init(int rump_version)
secmodel_init();
rnd_init();
/*
* Create the kernel cprng. Yes, it's currently stubbed out
* to arc4random() for RUMP, but this won't always be so.