mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 17:07:39 +00:00
Don't allocate in SDLTest_GenerateRunSeed
This commit is contained in:
parent
2f4b2df595
commit
872608b8af
3 changed files with 27 additions and 39 deletions
|
@ -101,15 +101,15 @@ typedef struct SDLTest_TestSuiteReference {
|
|||
|
||||
|
||||
/*
|
||||
* Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
|
||||
* Generates a random run seed string for the harness. The generated seed
|
||||
* will contain alphanumeric characters (0-9A-Z).
|
||||
*
|
||||
* Note: The returned string needs to be deallocated by the caller.
|
||||
* \param buffer Buffer in which to generate the random seed. Must have a capacity of at least length + 1 characters.
|
||||
* \param length Number of alphanumeric characters to write to buffer, must be >0
|
||||
*
|
||||
* \param length The length of the seed string to generate
|
||||
*
|
||||
* \returns the generated seed string
|
||||
* \returns A null-terminated seed string and equal to the in put buffer on success, NULL on failure
|
||||
*/
|
||||
char *SDLTest_GenerateRunSeed(const int length);
|
||||
char *SDLTest_GenerateRunSeed(char *buffer, int length);
|
||||
|
||||
/*
|
||||
* Execute a test suite using the given run seed and execution key.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue