]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/001109.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 001109.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Leetle bug in Services I think (fwd)
5 </TITLE>
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">
12 </HEAD>
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
18 </A><BR>
19 <I>Tue Jan 16 23:11:23 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001098.html">[IRCServices] Leetle bug in Services I think (fwd)
22 </A></li>
23 <LI>Next message: <A HREF="001100.html">[IRCServices] Multiple Services roots (fwd)
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>On Tue, 16 Jan 2001, shadow wrote:
35 &gt;<i> This should have been fixed in 4.4.9, but I've changed the algorithm
36 </I>&gt;<i> for 4.5.0 to a simple counter, which should ensure uniqueness. Hopefully
37 </I>&gt;<i> I can get a beta of 4.5 out before too long, but for the meantime I
38 </I>&gt;<i> suggest not using the guest-nick feature.
39 </I>
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.
43
44 in nickserv.c declare:
45 static int guestnum; /* Current guest number */
46
47 in ns_init():
48 guestnum = time(NULL);
49 while (guestnum&gt;9999999) guestnum -= 10000000;
50
51 in collide():
52 snprintf(guestnick, sizeof(guestnick), &quot;%s%ld%d%ld&quot;, NSGuestNickPrefix,
53 tv.tv_usec / 10000, guestnum++, tv.tv_sec % (60*60*24));
54
55 _ _ _|_ o._ o _
56 _)(_) |_ || |_&gt;
57
58
59
60
61 </PRE>
62
63 <!--endarticle-->
64 <HR>
65 <P><UL>
66 <!--threads-->
67 <LI>Previous message: <A HREF="001098.html">[IRCServices] Leetle bug in Services I think (fwd)
68 </A></li>
69 <LI>Next message: <A HREF="001100.html">[IRCServices] Multiple Services roots (fwd)
70 </A></li>
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>
76 </LI>
77 </UL>
78
79 </body></html>