Your message dated Fri, 9 Oct 2026 11:56:14 -0400
with message-id <[email protected]>
and subject line Re: mawk on arm64 ignores srand(), produces same results for 
rand()
has caused the Debian Bug report #1124627,
regarding mawk on arm64 ignores srand(), produces same results for rand()
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1124627: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1124627
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mawk
Version: 1.3.4.20250131-1
Severity: normal
X-Debbugs-Cc: [email protected], [email protected]
User: [email protected]
Usertags: arm64

Running `mawk 'BEGIN {print rand()}'` on Debian Trixie on arm64,
produces the same results. It is expected (and documented) that srand()
is called implicitly. And on Bookworm or on amd64, this works as
expected. Easy to reproduce using docker:

```
$ docker run -it --rm --platform linux/arm64 debian:trixie sh -c 'for i in 1 2 
3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
0.118709
0.118709
0.118709
0.118709
```

```
$ docker run -it --rm --platform linux/amd64 debian:trixie sh -c 'for i in 1 2 
3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
0.301452
0.968917
0.975551
0.0758413
```

```
$ docker run -it --rm --platform linux/amd64 debian:bookworm sh -c 'for i in 1 
2 3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
0.133928
0.991352
0.852069
0.211199
```

```
$ docker run -it --rm --platform linux/arm64 debian:bookworm sh -c 'for i in 1 
2 3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
0.5202
0.878447
0.73942
0.956202
```


-- System Information:
Debian Release: 13.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.12.57+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages mawk depends on:
ii  libc6  2.41-12

mawk recommends no packages.

mawk suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 1.3.4.20260129-1

On Sun, 04 Jan 2026 15:17:24 +0000 Richard Kojedzinszky 
<[email protected]> wrote:
> Package: mawk
> Version: 1.3.4.20250131-1
> Severity: normal
> X-Debbugs-Cc: [email protected], [email protected]
> User: [email protected]
> Usertags: arm64
>
> Running `mawk 'BEGIN {print rand()}'` on Debian Trixie on arm64,
> produces the same results. It is expected (and documented) that srand()
> is called implicitly. And on Bookworm or on amd64, this works as
> expected. Easy to reproduce using docker:
>
> ```
> $ docker run -it --rm --platform linux/arm64 debian:trixie sh -c 'for i in 1 2 3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
> 0.118709
> 0.118709
> 0.118709
> 0.118709
> ```
>
> ```
> $ docker run -it --rm --platform linux/amd64 debian:trixie sh -c 'for i in 1 2 3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
> 0.301452
> 0.968917
> 0.975551
> 0.0758413
> ```
>
> ```
> $ docker run -it --rm --platform linux/amd64 debian:bookworm sh -c 'for i in 1 2 3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
> 0.133928
> 0.991352
> 0.852069
> 0.211199
> ```
>
> ```
> $ docker run -it --rm --platform linux/arm64 debian:bookworm sh -c 'for i in 1 2 3 4; do mawk "BEGIN {print rand()}"; sleep 1; done'
> 0.5202
> 0.878447
> 0.73942
> 0.956202
> ```

This problem has been fixed since mawk v1.3.4.20260129.

Thanks,
Boyuan Yang

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to