<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>the cosmotron &#187; Update</title>
	<atom:link href="http://thecosmotron.com/category/site-news/update/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecosmotron.com</link>
	<description>the blog of ryan lewis</description>
	<lastBuildDate>Wed, 17 Feb 2010 06:23:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Random Numbers and NTL</title>
		<link>http://thecosmotron.com/2008/12/04/random-numbers-and-ntl/</link>
		<comments>http://thecosmotron.com/2008/12/04/random-numbers-and-ntl/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 01:36:39 +0000</pubDate>
		<dc:creator>Ryan Lewis</dc:creator>
				<category><![CDATA[Planet COSI]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[ntl]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[random numbers]]></category>
		<category><![CDATA[seed]]></category>
		<category><![CDATA[ZZ]]></category>

		<guid isPermaLink="false">http://thecosmotron.com/?p=68</guid>
		<description><![CDATA[According to its website, the Number Theory Library (NTL) is a: high-performance, portable C++ library providing data structures and algorithms for manipulating signed, arbitrary length integers, and for vectors, matrices, and polynomials over the integers and over finite fields. I have been using it a lot because of the Cryptography class that I&#8217;m in this [...]]]></description>
			<content:encoded><![CDATA[<p>According to its website, the <a href="http://www.shoup.net/ntl/">Number Theory Library</a> (NTL) is a:</p>
<blockquote><p>high-performance, portable C++ library providing data structures and algorithms for manipulating signed, arbitrary length integers, and for vectors, matrices, and polynomials over the integers and over finite fields. </p></blockquote>
<p>I have been using it a lot because of the Cryptography class that I&#8217;m in this semester, and something that I need to do frequently is generate random numbers.</p>
<p>To do this, seeding is frequently required, and the NTL is no different, but it took a while for me to actually get it to work.  The following will seed the random functions provided by the NTL ZZ class:</p>
<pre>ZZ number, seed;
srand(getpid());
seed &lt;&lt; ((long) GetTime() ^ rand());
SetSeed(seed);
RandomLen(number, rand() % 300);</pre>
<p>Stick that at the top of your <code>main()</code> and you should be all set.</p>
<p>Also, does anyone know of a shorter, possibly easier to remember, way to do this?  If so, the comments are open.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecosmotron.com/2008/12/04/random-numbers-and-ntl/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Now Featuring</title>
		<link>http://thecosmotron.com/2007/06/29/now-featuring/</link>
		<comments>http://thecosmotron.com/2007/06/29/now-featuring/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 23:14:47 +0000</pubDate>
		<dc:creator>Ryan Lewis</dc:creator>
				<category><![CDATA[Planet COSI]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://thecosmotron.com/2007/06/29/now-featuring/</guid>
		<description><![CDATA[the cosmotron is proud to announce the availability of The Konami Code on it&#8217;s website.]]></description>
			<content:encoded><![CDATA[<p>the cosmotron is proud to announce the availability of <i><a href="http://en.wikipedia.org/wiki/Konami_Code">The Konami Code</a></i> on it&#8217;s website.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecosmotron.com/2007/06/29/now-featuring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the cosmotron&#8217;s redesign</title>
		<link>http://thecosmotron.com/2006/03/14/the-cosmotrons-redesign/</link>
		<comments>http://thecosmotron.com/2006/03/14/the-cosmotrons-redesign/#comments</comments>
		<pubDate>Tue, 14 Mar 2006 20:55:28 +0000</pubDate>
		<dc:creator>Ryan Lewis</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://thecosmotron.com/2006/03/14/the-cosmotrons-redesign/</guid>
		<description><![CDATA[Recently I have grown very bored of my old theme so I have decided to start redesigning a majority of the site to accomidate this new theme. I suppose that the cosmotron forum and project goto will be changed and that will take a while; therefore I have no idea when everything will be complete. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have grown very bored of my old theme so I have decided to start redesigning a majority of the site to accomidate this new theme.  I suppose that the cosmotron forum and project goto will be changed and that will take a while; therefore I have no idea when everything will be complete.</p>
<p>Note: All of the old <span style="text-decoration: underline;">files</span> that were originally located directly off of the index (i.e. <a href="http://thecosmotron.com/content.php">content.php</a>), are now located in the <strong>old/</strong> directory (so, now that link is located at <a href="http://thecosmotron.com/old/content.php">old/content.php</a>), but all <span style="text-decoration: underline;">folders</span> have remained in the same place (i.e. <a href="http://thecosmotron.com/TEST/test5.php">TEST/test5.php</a> is still located exactly there).</p>
]]></content:encoded>
			<wfw:commentRss>http://thecosmotron.com/2006/03/14/the-cosmotrons-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arcade Mod and GOTO</title>
		<link>http://thecosmotron.com/2006/03/14/arcade-mod-goto/</link>
		<comments>http://thecosmotron.com/2006/03/14/arcade-mod-goto/#comments</comments>
		<pubDate>Tue, 14 Mar 2006 20:49:27 +0000</pubDate>
		<dc:creator>Ryan Lewis</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://thecosmotron.com/2006/03/14/arcade-mod-goto/</guid>
		<description><![CDATA[This past week I upgraded our Arcade Mod to the newest release. It has a few new features, as you can tell by looking at it. On a side note, I am still indeed working on Project GOTO. I am working out kinks in the mail program so that bots don&#8217;t use it to spam [...]]]></description>
			<content:encoded><![CDATA[<p>This past week I upgraded our <a href="http://forum.thecosmotron.com/activity.php">Arcade Mod</a> to the newest release. It has a few new features, as you can tell by looking at it.</p>
<p>On a side note, I am still indeed working on <a href="http://goto.thecosmotron.com/">Project GOTO</a>. I am working out kinks in the mail program so that bots don&#8217;t use it to spam (this is why my <a href="http://thecosmotron.com/feedback.php">feedback</a> form is now disabled). I expect to have a new release in a few weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecosmotron.com/2006/03/14/arcade-mod-goto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
