rt: Fix def of isaac_seed on windows
This commit is contained in:
parent
2d623f347c
commit
17dd5650f8
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user