102 if (!RAND_bytes((
unsigned char *)
RSTRING_PTR(str), n)) {
121 if (!RAND_pseudo_bytes((
unsigned char *)
RSTRING_PTR(str), n)) {
174 #define DEFMETH(class, name, func, argc) \
175 rb_define_method((class), (name), (func), (argc)); \
176 rb_define_singleton_method((class), (name), (func), (argc));
static VALUE ossl_rand_pseudo_bytes(VALUE self, VALUE len)
#define RSTRING_PTR(string)
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
Defines a class under the namespace of outer.
static VALUE ossl_rand_seed(VALUE self, VALUE str)
static VALUE ossl_rand_bytes(VALUE self, VALUE len)
static VALUE ossl_rand_status(VALUE self)
static VALUE ossl_rand_load_file(VALUE self, VALUE filename)
static VALUE ossl_rand_add(VALUE self, VALUE str, VALUE entropy)
static VALUE ossl_rand_egd_bytes(VALUE self, VALUE filename, VALUE len)
register unsigned int len
static VALUE ossl_rand_write_file(VALUE self, VALUE filename)
VALUE rb_define_module_under(VALUE outer, const char *name)
void ossl_raise(VALUE exc, const char *fmt,...)
#define SafeStringValue(v)
#define RSTRING_LENINT(str)
static VALUE ossl_rand_egd(VALUE self, VALUE filename)
VALUE rb_define_module(const char *name)
#define DEFMETH(class, name, func, argc)
VALUE rb_str_new(const char *, long)