From 21f6ea2ec1489ba8b772f83437dc3e110bb140cb Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Wed, 9 Dec 2020 16:00:00 +0000 Subject: [PATCH] Greatly increases entropy on forum link tokens (#15038) --- code/modules/client/client_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 84f273b63fa..c3cad6e9799 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -661,7 +661,7 @@ return if(query_find_token.NextRow()) return query_find_token.item[1] - var/tokenstr = md5("[ckey][rand()]") + var/tokenstr = md5("[rand(0,9999)][world.time][rand(0,9999)][ckey][rand(0,9999)][address][rand(0,9999)][computer_id][rand(0,9999)]") var/DBQuery/query_insert_token = GLOB.dbcon.NewQuery("INSERT INTO [format_table_name("oauth_tokens")] (ckey, token) VALUES('[ckey]','[tokenstr]')") if(!query_insert_token.Execute()) return