https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37675

--- Comment #29 from David Cook <[email protected]> ---
Created attachment 170795
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170795&action=edit
Bug 37675: Ensure unique random number server-side

This change ensures that a unique number is used
for the random numbers used in the MARC basic editor.

Note that there is a chance for a near infinite loop for records
with a large number of records. This could be improved by dynamically
increasing the random number max and throwing a fatal error if
too much time is spent generating numbers.

Or we could calculate how many numbers we need ahead of time, and use those.

Note that the Javascript used for creating random numbers does
not have knowledge of the already used set of numbers currently. This
should be improved as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to