diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-01-04 11:12:22 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-01-04 11:12:22 +0000 |
commit | 30c7790a512172b5254775fbad8f601d5638c1e6 (patch) | |
tree | 39a0ceb2db8fcd07e8b82bc107e5cc2a05df9d24 /ossl_rand.c | |
parent | 99d5a24aa57c9eb4ac792a36e0947dc5df84fe8c (diff) | |
download | ruby-openssl-history-30c7790a512172b5254775fbad8f601d5638c1e6.tar.gz |
* Further checking (Check_SafeStr, memory leaks)
Diffstat (limited to 'ossl_rand.c')
-rw-r--r-- | ossl_rand.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ossl_rand.c b/ossl_rand.c index 424a918..60b9af4 100644 --- a/ossl_rand.c +++ b/ossl_rand.c @@ -85,15 +85,16 @@ ossl_rand_bytes(VALUE self, VALUE len) * INIT */ void -Init_ossl_rand(VALUE mOSSL) +Init_ossl_rand(VALUE module) { - rb_define_method(mOSSL, "seed", ossl_rand_seed, 1); - rb_define_method(mOSSL, "load_random_file", ossl_rand_load_file, 1); - rb_define_method(mOSSL, "write_random_file", ossl_rand_write_file, 1); + rb_define_method(module, "seed", ossl_rand_seed, 1); + rb_define_method(module, "load_random_file", ossl_rand_load_file, 1); + rb_define_method(module, "write_random_file", ossl_rand_write_file, 1); - eRandomError = rb_define_class_under(mOSSL, "RandomError", rb_eStandardError); + eRandomError = rb_define_class_under(module, "RandomError", rb_eStandardError); - cRandom = rb_define_class_under(mOSSL, "Random", rb_cObject); + cRandom = rb_define_class_under(module, "Random", rb_cObject); + rb_define_method(cRandom, "seed", ossl_rand_seed, 1); rb_define_method(cRandom, "load_random_file", ossl_rand_load_file, 1); rb_define_method(cRandom, "write_random_file", ossl_rand_write_file, 1); |