static mrb_value mrb_random_g_srand(mrb_state *mrb, mrb_value self) { mrb_value random = mrb_const_get(mrb, mrb_obj_value(mrb_class_get(mrb, "Random")), mrb_intern_lit(mrb, "DEFAULT")); return mrb_random_srand(mrb, random); }
static mrb_value mrb_random_g_srand(mrb_state *mrb, mrb_value self) { mrb_value random = get_random(mrb); return mrb_random_srand(mrb, random); }
static mrb_value mrb_random_init(mrb_state *mrb, mrb_value self) { mrb_random_srand(mrb, self); return self; }