1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Leetle bug in Services I think (fwd)
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Leetle%20bug%20in%20Services%20I%20think%20%28fwd%29&In-Reply-To=Pine.BSF.3.96.1010116125211.470B-100000%40snow.fingers.co.za">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"001098.html">
11 <LINK REL=
"Next" HREF=
"001100.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] Leetle bug in Services I think (fwd)
</H1>
15 <B>Sotiris Tsimbonis
</B>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Leetle%20bug%20in%20Services%20I%20think%20%28fwd%29&In-Reply-To=Pine.BSF.3.96.1010116125211.470B-100000%40snow.fingers.co.za"
17 TITLE=
"[IRCServices] Leetle bug in Services I think (fwd)">stsimb at forthnet.gr
19 <I>Tue Jan
16 23:
11:
23 PST
2001</I>
21 <LI>Previous message:
<A HREF=
"001098.html">[IRCServices] Leetle bug in Services I think (fwd)
23 <LI>Next message:
<A HREF=
"001100.html">[IRCServices] Multiple Services roots (fwd)
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#1109">[ date ]
</a>
27 <a href=
"thread.html#1109">[ thread ]
</a>
28 <a href=
"subject.html#1109">[ subject ]
</a>
29 <a href=
"author.html#1109">[ author ]
</a>
34 <PRE>On Tue,
16 Jan
2001, shadow wrote:
35 ><i> This should have been fixed in
4.4.9, but I've changed the algorithm
36 </I>><i> for
4.5.0 to a simple counter, which should ensure uniqueness. Hopefully
37 </I>><i> I can get a beta of
4.5 out before too long, but for the meantime I
38 </I>><i> suggest not using the guest-nick feature.
40 This counter makes it easy for somebody to guess the next nick simply by
41 looking at nick changes.. It's better to have an algorithm that combines
42 timestamp with a counter.. e.g.
44 in nickserv.c declare:
45 static int guestnum; /* Current guest number */
48 guestnum = time(NULL);
49 while (guestnum
>9999999) guestnum -=
10000000;
52 snprintf(guestnick, sizeof(guestnick),
"%s%ld%d%ld
", NSGuestNickPrefix,
53 tv.tv_usec /
10000, guestnum++, tv.tv_sec % (
60*
60*
24));
67 <LI>Previous message:
<A HREF=
"001098.html">[IRCServices] Leetle bug in Services I think (fwd)
69 <LI>Next message:
<A HREF=
"001100.html">[IRCServices] Multiple Services roots (fwd)
71 <LI> <B>Messages sorted by:
</B>
72 <a href=
"date.html#1109">[ date ]
</a>
73 <a href=
"thread.html#1109">[ thread ]
</a>
74 <a href=
"subject.html#1109">[ subject ]
</a>
75 <a href=
"author.html#1109">[ author ]
</a>