Probably a corruption of Laganum maris, lagan being a right, in the middle ages, like jetsam and flotsam, by which goods thrown from a vessel in distress became the property of the king, or the lord on whose shores they were stranded. Spelman; Jacob; Du Cange.