This module is based on the original library named ``randq'' by Alessandro
Cudazzo, which was retrieved at May 27, 2025 from GitHub using the command

   git clone https://github.com/alessandrocuda/randq

Unfortunately enough, the original code depends on stdint.h and stdbool.h;
both are explicitly and deliberately prohibited within the FEDAnet project
as being commitee-made bastards, together with the whole "standard" C99
which introduced a lot of nonsense.  Besides that, the original code has
ill indentation and a lot of other issues, fortunately very easy to fix.

So, the code was quickly and brutally hacked by Andrey Vikt. Stolyarov in
2025.  No copyright is claimed for these changes; the library remains
copyrighted by the original author, distributed under the MIT license, and
here is the original copyright notice and licensing status:

/*
 * Copyright (c) 2019 Alessandro Cudazzo
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */

And here is the contents of the file LICENSE, which is slightly different:

=============================================================================
MIT License

Copyright (c) 2019 Alessandro Cudazzo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=============================================================================

The Makefile here was written for the FEDAnet project from scratch by
Andrey Vikt. Stolyarov; no copyright is claimed over this file, too.

Definitely it is me (Andrey Vikt. Stolyarov), not the original author, who
is to blame for all errors and other bad things; however, I don't assume
any legal responsibility and provide no warranty, so to blame me is the
only thing you can do in case something happens.

Please note that only the main module and the header are here; the original
library repo included some examples, tests, documentation etc.  If you're
interested in these, you might want to download the original library.
