Closed Bug 1110688 Opened 10 years ago Closed 10 years ago

Resolve open question about random initialization

Categories

(Firefox for iOS :: Sync, defect)

All
iOS 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rnewman, Assigned: rnewman)

Details

Attachments

(1 file)

In Sync we use SecRandomCopyBytes. It's not immediately obvious whether this needs to be initialized or seeded. This bug is to resolve that question.
Attached file Proposed patch. v1
Attachment #8535545 - Flags: review?(sarentz)
I also see Apple sample code use `arc4random`.

See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/arc4random.3.html - which has a note:

> There is no need to call arc4random_stir() before using arc4random() functions family, since they auto-matically automatically matically initialize themselves.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8535545 - Flags: review?(sarentz) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: