public struct PhiloxRandomNumberGenerator : SeedableRandomNumberGenerator
การใช้งาน SeedableRandomNumberGenerator
โดยใช้ Philox ปลาแซลมอนและคณะ SC 2011. ตัวเลขสุ่มคู่ขนาน: ง่ายเหมือน 1, 2, 3 http://www.thesalmons.org/john/random123/papers/random123sc11.pdf
โครงสร้างนี้ใช้ Philox4x32 PRNG 10 รอบ จะต้องเริ่มต้นด้วยค่า 64 บิต
ตัวสร้างแต่ละตัวไม่ปลอดภัยสำหรับเธรด แต่ตัวสร้างที่แตกต่างกันจะไม่แชร์สถานะ ข้อมูลสุ่มที่สร้างขึ้นมีคุณภาพสูง แต่ไม่เหมาะสำหรับแอปพลิเคชันการเข้ารหัส
คำประกาศ
public static var global: PhiloxRandomNumberGenerator
คำประกาศ
public init(uint64Seed seed: UInt64)
คำประกาศ
public init(seed: [UInt8])
คำประกาศ
public mutating mutating func next() -> UInt64