diff options
Diffstat (limited to 'ossl_rand.c')
-rw-r--r-- | ossl_rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ossl_rand.c b/ossl_rand.c index 037f608..f5be630 100644 --- a/ossl_rand.c +++ b/ossl_rand.c @@ -29,7 +29,7 @@ VALUE eRandomError; static VALUE ossl_rand_seed(VALUE self, VALUE str) { - Check_SafeStr(str); + Check_Type(str, T_STRING); RAND_seed(RSTRING(str)->ptr, RSTRING(str)->len); return str; |