Talk:RNG

From The Urban Dead Wiki
Revision as of 19:32, 4 May 2013 by BenM (talk | contribs) (→‎Bro)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Bro

It uses the php srand() function (seeded-random number generation, the seed goes in the brackets and then a sequence of random numbers can be produced), which fails badly at being random. It fails so badly in fact that even a mere human can spot the pattern without much difficulty. In Urban Dead, it was seeded with Unix Time (The numbers of seconds elapsed since Jan 1st, 1970). (quote from the article)

This game's coded in CGI, not PHP. Bean 13:23, 29 May 2011 (BST)

CGI is just the Common Gateway Interface, it's not indicative of the language used. I believe from comments Kevan has made in the past (around the time of the 8 second exploit) that UD uses Perl, but there is little information available relating to which (P)RNG is being used with Perl or which version of Perl. I have seen references here to Perl's rand() module, which unfortunately is ancient and crap, but there are other modules available which are better (e.g. Data::Entropy, Crypt::Random, Math::Random::Secure and Math::TrulyRandom). --BenM 20:32, 4 May 2013 (BST)

History

  • (cur) (last) 12:19, 2 June 2007 Toejam (Talk | contribs)
  • (cur) (last) 20:24, 3 February 2007 Forlorad (Talk | contribs)
  • (cur) (last) 00:59, 9 May 2006 Wifey (Talk | contribs) (Just fixing some minor spelling and stylistic mistakes. Alos, "King in Yellow." Not "Yellow King.")
  • (cur) (last) 11:42, 2 May 2006 Xoid (Talk | contribs) m
  • (cur) (last) 12:47, 1 May 2006 Karlsbad (Talk | contribs)
  • (cur) (last) 15:23, 11 April 2006 Mike Sharp (Talk | contribs)
  • (cur) (last) 15:37, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 15:36, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 15:35, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 15:34, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 08:09, 29 March 2006 Karlsbad (Talk | contribs)
  • (cur) (last) 08:08, 29 March 2006 Karlsbad (Talk | contribs)