Method: Random#marshal_dump
- Defined in:
- random.c
#marshal_dump ⇒ Object (private)
:nodoc:
859 860 861 862 863 864 865 866 867 868 869 870 |
# File 'random.c', line 859 static VALUE rand_mt_dump(VALUE obj) { rb_random_mt_t *rnd = rb_check_typeddata(obj, &random_mt_type); VALUE dump = rb_ary_new2(3); rb_ary_push(dump, mt_state(&rnd->mt)); rb_ary_push(dump, INT2FIX(rnd->mt.left)); rb_ary_push(dump, rnd->base.seed); return dump; } |