rt: Fix def of isaac_seed on windows

This commit is contained in:
Brian Anderson 2012-05-21 17:42:32 -07:00
parent 2d623f347c
commit 17dd5650f8
2 changed files with 3 additions and 3 deletions

View File

@ -185,7 +185,7 @@ rand_seed() {
rust_vec *v = (rust_vec *) task->kernel->malloc(vec_size<uint8_t>(size),
"rand_seed");
v->fill = v->alloc = size;
isaac_seed((uint8_t*) &v->data);
isaac_seed(task->kernel, (uint8_t*) &v->data);
return v;
}

View File

@ -98,7 +98,7 @@ make_str_vec(rust_kernel* kernel, size_t nstrs, char **strs) {
// Initialization helpers for ISAAC RNG
inline void isaac_seed(uint8_t* dest)
inline void isaac_seed(rust_kernel* kernel, uint8_t* dest)
{
size_t size = sizeof(ub4) * RANDSIZ;
#ifdef __WIN32__
@ -137,7 +137,7 @@ isaac_init(rust_kernel *kernel, randctx *rctx, rust_vec* user_seed)
seed = (seed + 0x7ed55d16) + (seed << 12);
}
} else {
isaac_seed((uint8_t*) &rctx->randrsl);
isaac_seed(kernel, (uint8_t*) &rctx->randrsl);
}
randinit(rctx, 1);