Shared: add crandom() implementation into defs.h

This commit is contained in:
Marco Cawthorne 2023-01-17 16:39:57 -08:00
parent 19d7f30cc4
commit fea5ed574f
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 7 additions and 0 deletions

View File

@ -325,3 +325,10 @@ Util_IsSingleplayer(void)
/* else we're multiplayer */
return false;
}
float
crandom(void)
{
return ((random() - 0.5f) * 2.0f);
}