Bug 24591 – [std.random] docs bad at communicating trivail usecase

Status
NEW
Severity
enhancement
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-06-08T16:16:10Z
Last change time
2024-12-01T16:42:46Z
Assigned to
No Owner
Creator
crazymonkyyy
Moved to GitHub: phobos#10556 →

Comments

Comment #0 by crazymonkyyy — 2024-06-08T16:16:10Z
https://forum.dlang.org/post/[email protected] https://dlang.org/phobos/std_random.html#.uniform uniform's docs code communicates using a verbose seed; this is wildly unnecessary for 95% of cases(and if someones doing cyptro they should read and understand the whole lib) pathologically simple code such as: ```d import std; void main(){ uniform(0,100).writeln; } ``` should be front and center
Comment #1 by robert.schadek — 2024-12-01T16:42:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10556 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB