aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/random.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-04-21 17:29:47 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-04-21 17:29:47 +0000
commit937879f11db15a4842306f9da4b4a3e60cf073b7 (patch)
tree3a72837d2323df2f844951229ecbbdb22925ac6a /include/sys/random.h
parent2fae1b3d0af1caa2aaa77552a0c96f121016381d (diff)
Update SPL to use new debug infrastructure. This means:
- Replacing all BUG_ON()'s with proper ASSERT()'s - Using ENTRY,EXIT,GOTO, and RETURN macro to instument call paths git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@78 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/random.h')
-rw-r--r--include/sys/random.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/random.h b/include/sys/random.h
index b7f83ce1a..400aaa91f 100644
--- a/include/sys/random.h
+++ b/include/sys/random.h
@@ -17,7 +17,7 @@ extern "C" {
static __inline__ int
random_get_bytes(uint8_t *ptr, size_t len)
{
- BUG_ON(len < 0);
+ ASSERT(len >= 0);
get_random_bytes((void *)ptr,(int)len);
return 0;
}
@@ -26,7 +26,7 @@ random_get_bytes(uint8_t *ptr, size_t len)
static __inline__ int
random_get_pseudo_bytes(uint8_t *ptr, size_t len)
{
- BUG_ON(len < 0);
+ ASSERT(len >= 0);
get_random_bytes((void *)ptr,(int)len);
return 0;
}