diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-22 08:21:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-22 08:21:01 +0000 |
commit | d0e5a34ac7c34e70c145024a0fed8f6042814f29 (patch) | |
tree | 8a7edcfded4a6fe70c18cb33c65868baf9268573 /ext/openssl/ossl_rand.c | |
parent | 3e8d63059d36fe6ba64ffba7bfce577693c98b59 (diff) | |
download | ruby-d0e5a34ac7c34e70c145024a0fed8f6042814f29.tar.gz |
* ext/**/*.[ch]: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_rand.c')
-rw-r--r-- | ext/openssl/ossl_rand.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/openssl/ossl_rand.c b/ext/openssl/ossl_rand.c index af61fe33a0..97a1b9fa95 100644 --- a/ext/openssl/ossl_rand.c +++ b/ext/openssl/ossl_rand.c @@ -65,7 +65,7 @@ static VALUE ossl_rand_load_file(VALUE self, VALUE filename) { SafeStringValue(filename); - + if(!RAND_load_file(RSTRING_PTR(filename), -1)) { ossl_raise(eRandomError, NULL); } @@ -134,7 +134,7 @@ static VALUE ossl_rand_egd(VALUE self, VALUE filename) { SafeStringValue(filename); - + if(!RAND_egd(RSTRING_PTR(filename))) { ossl_raise(eRandomError, NULL); } @@ -186,9 +186,9 @@ Init_ossl_rand() #endif mRandom = rb_define_module_under(mOSSL, "Random"); - + eRandomError = rb_define_class_under(mRandom, "RandomError", eOSSLError); - + DEFMETH(mRandom, "seed", ossl_rand_seed, 1); DEFMETH(mRandom, "random_add", ossl_rand_add, 2); DEFMETH(mRandom, "load_random_file", ossl_rand_load_file, 1); @@ -196,7 +196,7 @@ Init_ossl_rand() DEFMETH(mRandom, "random_bytes", ossl_rand_bytes, 1); DEFMETH(mRandom, "pseudo_bytes", ossl_rand_pseudo_bytes, 1); DEFMETH(mRandom, "egd", ossl_rand_egd, 1); - DEFMETH(mRandom, "egd_bytes", ossl_rand_egd_bytes, 2); + DEFMETH(mRandom, "egd_bytes", ossl_rand_egd_bytes, 2); DEFMETH(mRandom, "status?", ossl_rand_status, 0) } |