_rand_r()

Defined in stdlib.h, this is a reentrant version of the rand() function.

Show/hideSyntax

int __rand_r(struct _rand_state * buffer);

where:

buffer

is a pointer to a user-supplied buffer storing the state of the random number generator.

Show/hideUsage

This function enables you to explicitly supply your own buffer in thread-local storage.

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0492F
Non-ConfidentialID091611