Project

General

Profile

Actions

Bug #16

closed

rand needs to be seeded when used in the engine

Added by Will Metcalf almost 15 years ago. Updated almost 15 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

Actions #1

Updated by Victor Julien almost 15 years ago

  • Estimated time changed from 1.00 h to 2.50 h
Actions #2

Updated by Pablo Rincon almost 15 years ago

Added a function to create preseedings

Actions #3

Updated by Victor Julien almost 15 years ago

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

Patch applied, thanks Pablo.

Actions

Also available in: Atom PDF