XyrisOS / xyris

The Xyris Kernel
https://xyr.is
MIT License
154 stars 11 forks source link

Add a pseudo-random number function #259

Closed Jmallone closed 3 years ago

Jmallone commented 3 years ago

The pseudorandom number function in kernel/lib/stdlib.c folder. rand() and srand()

Jmallone commented 3 years ago

nice, i'll change this

Kfeavel commented 3 years ago

@Jmallone I would also rename the files to rand.hpp and rand.cpp instead of stdlib.*. I know this isn't POSIX complient, but I don't think that's necessarily a goal right now. We want to (ideally) do things smarter than POSIX since we're able to start from the ground up.

Kfeavel commented 3 years ago

Closed since @Jmallone couldn't update the MR to point to their new branch.