summaryrefslogtreecommitdiffstats
path: root/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'rand.c')
-rw-r--r--rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rand.c b/rand.c
index 91d122ec..ce3a69a7 100644
--- a/rand.c
+++ b/rand.c
@@ -83,7 +83,7 @@ static val make_state(void)
val random_state_p(val obj)
{
- return typeof(obj) == random_state_s ? t : nil;
+ return cobjclassp(obj, random_state_s);
}
INLINE rand32_t *rstate(struct rand_state *r, int offs)