68 ossl_rand_load_file(
VALUE self,
VALUE filename)
87 ossl_rand_write_file(
VALUE self,
VALUE filename)
117 ret = RAND_bytes((
unsigned char *)
RSTRING_PTR(str), n);
120 }
else if (ret == -1) {
127 #if defined(HAVE_RAND_PSEUDO_BYTES) 149 if (RAND_pseudo_bytes((
unsigned char *)
RSTRING_PTR(str), n) < 1) {
205 ossl_rand_status(
VALUE self)
230 #if defined(HAVE_RAND_PSEUDO_BYTES)
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
Defines a class under the namespace of outer.
void Init_ossl_rand(void)
void rb_define_module_function(VALUE module, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a module function for module.
register unsigned int len
VALUE rb_define_module_under(VALUE outer, const char *name)
#define StringValueCStr(v)
void rb_check_safe_obj(VALUE)
void ossl_raise(VALUE exc, const char *fmt,...)
#define RSTRING_LENINT(str)
VALUE rb_define_module(const char *name)
VALUE rb_str_new(const char *, long)