diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-18 00:16:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-18 00:16:25 +0000 |
commit | ca0c67d5e8c6b031a4d6d4ed991e4aecff5c3889 (patch) | |
tree | b8b953ffb6bd74579a97e173543db10f0f41c93f /include/ruby | |
parent | 2c2963d3e8ab4c50b7dea9f0f1c73c40a54d5e94 (diff) | |
download | ruby-ca0c67d5e8c6b031a4d6d4ed991e4aecff5c3889.tar.gz ruby-ca0c67d5e8c6b031a4d6d4ed991e4aecff5c3889.tar.xz ruby-ca0c67d5e8c6b031a4d6d4ed991e4aecff5c3889.zip |
* random.c (rb_random_{int32,real,bytes,int}): added functions for
extension libraries.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 7375442b4..4418806a6 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -524,9 +524,13 @@ VALUE rb_range_new(VALUE, VALUE, int); VALUE rb_range_beg_len(VALUE, long*, long*, long, int); int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp); /* random.c */ -unsigned long rb_genrand_int32(void); +unsigned int rb_genrand_int32(void); double rb_genrand_real(void); void rb_reset_random_seed(void); +VALUE rb_random_bytes(VALUE rnd, long n); +VALUE rb_random_int(VALUE rnd, VALUE max); +unsigned int rb_random_int32(VALUE rnd); +double rb_random_real(VALUE rnd); /* re.c */ #define rb_memcmp memcmp int rb_memcicmp(const void*,const void*,long); |