https://bugs.documentfoundation.org/show_bug.cgi?id=84675

--- Comment #4 from Johnny_M <[email protected]> ---
(In reply to Johnny_M from comment #2)
Unfortunately, the following code example above seems to be wrong and needs to
be removed:

> [...] If wishing to initialize (i.e. seed) the
> generator using system time at any other point of time, use:
> 
> Sub ExampleRandomize
> Dim lSeconds As Long
>    lSeconds = Timer
>    Randomize lSeconds
> End Sub
> [...]

Reasons: (a) That is not exactly what happens when Randomize is called without
a parameter, and (b) Randomize expects an integer, while Timer provides a Long
and will overflow it (86400 seconds per day).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to