Sloan OEM part. This spring goes inside the flush valve piston assembly of Sloan Naval, Crown, and Star flushometers. It sits between the piston body and the relief valve. (aka: 0328019)
If your piston type flushometer flushes continuously (or longer than expected), this spring might need to be replaced.