X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fuid.h;h=9db48fde4f333c6e3ce4f1b4d5dc0b7a1bfdce88;hb=061d54f38e2ea9044935dfd6b8c208e7f4a3a958;hp=772c8a7165fafb9b36e35db98b4885afa1be1add;hpb=c6e40d36b42a7ebf832c3a57d2816a47ee9c9a76;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/uid.h b/include/uid.h index 772c8a716..9db48fde4 100644 --- a/include/uid.h +++ b/include/uid.h @@ -1,6 +1,10 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2013, 2019, 2021 Sadie Powell + * Copyright (C) 2013 Attila Molnar + * Copyright (C) 2012 Robby + * Copyright (C) 2010 Craig Edwards * Copyright (C) 2007 Robin Burchell * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -18,12 +22,9 @@ #pragma once -class TestSuite; - class CoreExport UIDGenerator { - friend class TestSuite; - + private: /** Holds the current UID. Used to generate the next one. */ std::string current_uid; @@ -35,8 +36,7 @@ class CoreExport UIDGenerator public: /** * This is the maximum length of a UUID (unique user identifier). - * This length is set in compliance with TS6 protocol, and really should not be changed. Ever. - * It allows for a lot of clients as-is. -- w00t. + * It allows up to 12,960 servers and 2,176,782,336 users per server. */ static const unsigned int UUID_LENGTH = 9;