aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_rand.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-02-23 07:27:42 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-02-23 07:27:42 +0000
commit59dd8c5696d83aff78c506d2a161ea4ffb404088 (patch)
tree4122e0c64fd7117dfdc776f013fb1e487d227b4f /ossl_rand.c
parent447afde226aac7461d8a549ea8aae5763b0e3124 (diff)
downloadruby-openssl-history-59dd8c5696d83aff78c506d2a161ea4ffb404088.tar.gz
* More benevolent checks (Check_SafeStr(x) -> Check_Type(x, T_STRING)
(where we don't care)
Diffstat (limited to 'ossl_rand.c')
-rw-r--r--ossl_rand.c2
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;