Skip to content
Snippets Groups Projects
Commit 06481694 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Add stackoverflow link regarding rand()

parent 8cb92588
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,7 @@ public:
Fiber* nextFiber();
// https://stackoverflow.com/a/3747462/194894
static inline int rand() {
seed = 214013 * seed + 2531011;
return (seed >> 16) & 0x7FFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment