Project

General

Profile

Actions

Bug #16

closed
WM PR

rand needs to be seeded when used in the engine

Bug #16: rand needs to be seeded when used in the engine

Added by Will Metcalf over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

rand needs to be seeded when used here...
Security 'rand' is a poor random number generator flow.c 388
Security 'rand' is a poor random number generator defrag.c 942

normally people just seed with a timestamp but the article below suggests seeding with a hash of the timestamp.

http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx


Files

VJ Updated by Victor Julien over 16 years ago Actions #1

  • Estimated time changed from 1.00 h to 2.50 h

PR Updated by Pablo Rincon over 16 years ago Actions #2

Added a function to create preseedings

VJ Updated by Victor Julien over 16 years ago Actions #3

  • Status changed from New to Closed
  • Assignee changed from OISF Dev to Pablo Rincon

Patch applied, thanks Pablo.

Actions

Also available in: PDF Atom