Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/amx/amxcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ static cell AMX_NATIVE_CALL core_random(AMX *amx,const cell *params)
#else
cell value = abs(params[1]);
#endif

if(value <= 1) return 0;

/* one-time initialization (or, mostly one-time) */
#if !defined SN_TARGET_PS2 && !defined _WIN32_WCE && !defined __ICC430__
Expand Down