|
|
|
|
|
by DHowett
5211 days ago
|
|
The only caveat is that you then have to wrap it in an #ifdef if you want source portability. The thing random() has over arc4random() is exactly that - it's part of the standard C library on most platforms. For discussion: Why is random() not already arc4random() on platforms that provide the arc4 variant? Is it for speed's sake? Different implementations of libc functions will seed differently, so it's not a cross-platform seed stability concern.
Is the problem that you can't seed it with a fixed value and get the same pseudorandom sequence? |
|