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

@@ -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);