1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Rooms, 3D arrays, etc. -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: from stimpy.globecomm.net [207.51.48.4] by in4.ibm.net id 865645935.42106&#45;1 Sat Jun  7 01:12:15 1997 CUT -->
<!--X-Message-Id: 199706070112.UAA17966@dfw&#45;ix15.ix.netcom.com -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Rooms, 3D arrays, etc.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jlsysinc#ix,netcom.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01243.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01245.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01221.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00874.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01244">Author</A>
&nbsp;|&nbsp;<A HREF="#01244">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01244">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Rooms, 3D arrays, etc.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Rooms, 3D arrays, etc.</LI>
<LI><em>From</em>: "Jon A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 6 Jun 1997 21:12:13 -0400</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
&gt; From: clawrenc#cup,hp.com
&gt;    at 08:34 PM, "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt; said:
&gt; 
&gt; &gt;Does multi-threading have any affects on seeds used in the random
&gt; &gt;generator.  Does anyone know if this is truly thread safe?
&gt; 
&gt; 
&gt; The standard approach is to make private rand() functions for each
&gt; feature.  This has the benefit of allowing the choice of algorithm for
&gt; each rand() function to be tailored to the task.  The problem is that
&gt; it does not solve the problem if your feature may be called from
&gt; multiple threads (eg multiple threads querying/generating your
&gt; landscape).  Next up is to use per-feature specific rand() functions
&gt; and then add some sort of rand() context to each thread (cf rand
&gt; object) which guarantees the sequence.  

Yes. This would seem to solve the problem.  Generate your own seed table
for use with the terrain generator.  If you are generating terrain
as part of bootup or "area" load this may well end up a single-threaded 
version of rand().  Other functions whose 'normal' use of rand() wouldn't
need the same attention, except for race conditions.

-
"If I'd known it was harmless, I would have killed it myself"
*- Through a Scanner Darkly - PKD -*

----------


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01243.html">Re: [MUD-Dev]  The Lessons of Lucasfilm's Habitat</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01245.html">"short" Introductory Message (fwd)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01221.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00874.html">Important: Posting requirements</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01244"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01244"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]  Physical Space Representation</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01285" HREF="msg01285.html">Re: [MUD-Dev]  Physical Space Representation</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 11 Jun 1997, 10:08 GMT
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="01190" HREF="msg01190.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Thu 05 Jun 1997, 12:51 GMT
</LI>
<LI><strong><A NAME="01202" HREF="msg01202.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 05 Jun 1997, 21:47 GMT
</LI>
<LI><strong><A NAME="01221" HREF="msg01221.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Fri 06 Jun 1997, 12:00 GMT
</LI>
<LI><strong><A NAME="01244" HREF="msg01244.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 07 Jun 1997, 08:12 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00874" HREF="msg00874.html">Important: Posting requirements</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 28 May 1997, 11:32 GMT
<LI><strong><A NAME="00873" HREF="msg00873.html">Re: [MUD-Dev]  Conventions (was RP thesis)</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 28 May 1997, 09:53 GMT
<UL>
<LI><strong><A NAME="00884" HREF="msg00884.html">Re: [MUD-Dev]  Conventions (was RP thesis)</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Wed 28 May 1997, 14:22 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00863" HREF="msg00863.html">Re: [MUD-Dev]  Levels and Goals [was Alright..IF your gonan do DESIESE]</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 28 May 1997, 02:30 GMT
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>