rt: Fix iaac_init using wrong type and not seeding correctly

This was a result of changing the vector representation to contain
a box header.
This commit is contained in:
Brian Anderson
2012-06-04 23:26:06 -07:00
parent e04e9488ad
commit 78fe75a741
3 changed files with 16 additions and 5 deletions

View File

@@ -204,7 +204,7 @@ rand_new() {
}
extern "C" CDECL void *
rand_new_seeded(rust_vec* seed) {
rand_new_seeded(rust_vec_box* seed) {
rust_task *task = rust_get_current_task();
rust_sched_loop *thread = task->sched_loop;
randctx *rctx = (randctx *) task->malloc(sizeof(randctx),